Page 1 of 1

Cutting off a note instantly? (SunVox or SunVox Lib)

Posted: Tue Dec 24, 2019 7:55 am
by turbobasic
How do I make a module stop generating sound instantly?

Like an instant NOTE_OFF event that doesn't wait for the module to finish executing the envelope? Or like a NOTECMD_CLEAN_SYNTHS that just resets one specific synth? Or like removing and readding a module in one frame but baked into the track and executed consistently on the side of sunvox engine?

Re: Cutting off a note instantly? (SunVox or SunVox Lib)

Posted: Tue Dec 24, 2019 9:18 am
by NightRadio
How do I make a module stop generating sound instantly?
There is no such command.
You can try to remove the module and then load it again.
Also you can try to send effect 13 0001 to mute the module. And then send 14 0001 to unmute it. But this will not stop the sound of the module actually.

Re: Cutting off a note instantly? (SunVox or SunVox Lib)

Posted: Wed Dec 25, 2019 2:36 am
by turbobasic
Oh, too bad.

This opens some cool little possibilites: like having a module with very long attack, but cutting it off quickly. adding an amount of control even to randomized module controller values. An notecmd that hard-resets the module would be nice, if you happen to do some coding around those parts :).

(That was the thing I liked a lot in Nanoloop (on Android) and i wanted to reconstruct this behaviour in my own SunVox-Lib-based looper.)

Best wishes and Merry Christmas!

Re: Cutting off a note instantly? (SunVox or SunVox Lib)

Posted: Wed Dec 25, 2019 11:55 pm
by SolarLune
If you set the volume in the channel to 00, that effectively cuts off the note of an instrument with a longer release.