Reference jump()

jump()

Move the playhead of a soundfile that is currently playing to a new position and a new duration, in seconds. If none are given, will reset the file to play entire duration from start to finish. To set the position of a soundfile that is not currently playing, use the play or loop methods.

Syntax

jump(cueTime, duration)

Parameters

cueTime
Number:

cueTime of the soundFile in seconds.

duration
Number:

duration in seconds.

Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!

Related References