To view this content, you need to install Java from java.com

This sketch demonstrates how to use the rewind method of a Playable class. The class used here is AudioPlayer, but you can also rewind an AudioSnippet. Rewinding a Playable sets the position to zero, the beginning. Rewinding doesn't change the play state of a Playable so if it is playing or looping when you rewind, it will continue to play or loop after you rewind it. Press 'r' to rewind the player.

Source code: rewind waveform

Built with Processing