pgregory / wetracker

A collaborative web based music creation tool based on the Tracker heritage.
http://pgregory.github.io/wetracker/
MIT License
83 stars 3 forks source link

When stopping/starting, the remaining sound in the queue plays before the new song start. #12

Closed pgregory closed 7 years ago

pgregory commented 7 years ago

Need to find a way to flush the sound buffers when stopping playback and starting a new, or replaying the current song from the start.

a1k0n commented 7 years ago

Yeah, the jsxm pause functionality just disconnects the ScriptProcessorNode from the output entirely, which leaves everything in its buffer... instead, you'll have to pause the pattern row processing but leave the audio engine running, and silence all the channels or something.

jsxm's sequence playback and audio engine are a bit tightly coupled, and you'll have to break that for an interactive editor if you want to use it...

a1k0n commented 7 years ago

I think you can close this, except now, you need to add a "stop" button which releases notes in all channels. :)

pgregory commented 7 years ago

This specific issue is no longer relevant, the player has changes significantly since reporting this. There are other issues that capture any remaining problems. Closing.