Auto Threshold Detector
-
How can I create an auto threshold detector for the Compressor?
-
@D-Williams23 start by looking at:
Engine.getDecibelsForGainFactor()
-
@Lindon Okay I looked at it. I've never used this function before so I don't even know where to begin.
-
What will you do with Auto Treshold detector? Dynamic Eq?
-
@D-Williams23 said in Auto Threshold Detector:
@Lindon Okay I looked at it. I've never used this function before so I don't even know where to begin.
so for a number of modules (including simple gain modules) you can obtain the current audio level for the left and right channels:
leftLevel = Engine.getDecibelsForGainFactor(MasterGain.getCurrentLevel(0));
so your script would (at this point) know the current level - you just need to place this inside a timer callback to get a realtime-ish level value in your script.