This sketch demonstrates how to use the skip method of a Playable class.
The class used here is AudioPlayer, but you can also skip an AudioSnippet.
When you skip, it is always measured from the current position of the recording. So skip(100) will
set the "playhead" at 100 milliseconds from the current position. A sort of fast-forward. It is also possible
to skip in a negative direction. So skip(-200) will set the "playhead" to 200 milliseconds before
the current position. Using skip will not change the play state of Playable,
meaning that if it was already playing it will continue playing from the new position, but if it was not playing,
skipping will not start playback, it will simply set the point at which playback will begin.
If an error occurs while trying to skip, the position will not change.
If you try to skip to a position that is less than zero or try to skip past the end of the
recording, the position will be clamped to zero or length().
Press 'f' to skip by 100 milliseconds.
Press 'r' to skip by -500 milliseconds.
Built with Processing