How to Implement a Release Envelope for Audio in ScripNode?
-
I want to make a Polyphonic ScriptNode where I can apply a release envelope to incoming audio. The audio is the sample output, so the envelope could be simply triggered via a No MIDI Node. So, it seems like I need these Nodes:
- No MIDI
- Simple Envelope
- Core Gain
…but I can't figure out how to connect them so the envelope triggers when a note-on occurs, and then ramp down the volume.
Thanks and cheers. (And Happy New Year! 🥳)