Hi everyone,
I'm working on a custom noise gate in Scriptnode, and it's mostly functional now.
I'm analyzing the input signal level using both Peak and RMS, and using a compare node to control the gate.
In the screenshot below, you'll see that:
I’ve added both RMS and Peak nodes (thanks to Griffinboy),
But currently, only the Peak level is used as the input to the compare node.
Now I’d like to improve this by giving the user the option to choose between Peak or RMS for the gate detection.
What I’m looking for:
A way to store or hold both values (Peak and RMS),
Then dynamically select one based on a selector knob (e.g. 0 = Peak, 1 = RMS),
And route the selected value into the compare node.
Is there a way to do this using only built-in Scriptnode nodes?
Or would I need to go into SNEX or write a custom node in C++?
