This sketch demonstrates how to use the length method of a Playable class.
The class used here is AudioPlayer, but you can also get the length of an AudioSnippet.
The length is how long the recording being played by the player is in milliseconds (1 ms = 1/1000 of a second).
Built with Processing