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

Multi-platform modular music creation studio
Post Reply
turbobasic
Posts: 5
Joined: Fri Dec 06, 2019 5:22 pm

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

Post by turbobasic » Tue Dec 24, 2019 7:55 am

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?

User avatar
NightRadio
Site Admin
Posts: 3263
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

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

Post by NightRadio » Tue Dec 24, 2019 9:18 am

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.

turbobasic
Posts: 5
Joined: Fri Dec 06, 2019 5:22 pm

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

Post by turbobasic » Wed Dec 25, 2019 2:36 am

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!

User avatar
SolarLune
Posts: 511
Joined: Tue Oct 26, 2010 9:54 pm
Contact:

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

Post by SolarLune » Wed Dec 25, 2019 11:55 pm

If you set the volume in the channel to 00, that effectively cuts off the note of an instrument with a longer release.

Post Reply