Getting Gain Reduction values from Scriptnode Compressor



  • Hi All! Is it possible to get the gain reduction values from the scriptnode compressor, to apply them to a "meter-slider" via a timer?
    Something like this:

    const var t = Engine.createTimerObject();
    t.setTimerCallback(function()
    {
    	var v = Compressor.getAttribute(Compressor.CompressorReduction);
    	
    	v = Engine.getDecibelsForGainFactor(v);
    	
    	grMeter.setValue(v);
    });
    
    t.startTimer(30);
    


  • @alepan Partially solved linking the compressor to a fake knob in Scriptnode only used to read its value. Now I only need to find a correct scale to write the label with dB values.


Log in to reply
 

15
Online

648
Users

2.6k
Topics

21.5k
Posts