pizzicato icon indicating copy to clipboard operation
pizzicato copied to clipboard

Ability to stop looping at the end of a file

Open kitchWWW opened this issue 5 years ago • 1 comments

feature request Howdy! I have a 3 second sound clip and I would like the user to be able to listen to it play a couple of times, then hit a button to have it stop. Ideally, I would like it to finish the current loop before coming to a stop. I'd be able to do something like this:

sound.play(options{loop: true})
// wait for button input
sound.looping = false
// the current time finishes playing, then it stops at the end of the file.

Do you have any suggestions on how I might be able to do this with the current code base? (Also, thanks so much, this is a really incredible library. It has enabled me to distribute a ton of super expressive composition tools to many listeners and performers)

kitchWWW avatar Jan 12 '20 06:01 kitchWWW

sure

yishengjiang99 avatar Apr 10 '20 18:04 yishengjiang99