20  Time

In this chapter, you will learn how to work with time to schedule Web Audio API sound playback points, how to create loops, and how to automate parameter changes.

Images  The Timing Clock

When you invoke a new instance of the audio context, the Web Audio API’s internal timing clock begins to tick. This timing reference is in seconds and is expressed as a decimal number. The timing clock is tied to your computer’s internal audio hardware subsystem, giving it a degree of precision that can align with sounds at the sample level. If you want to see the current value of the audio clock, you can use the currentTime property of the audio context. ...

Get JavaScript for Sound Artists now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.