HISE Logo Forum
    • Categories
    • Register
    • Login

    Getting Gain Reduction values from Scriptnode Compressor

    Scheduled Pinned Locked Moved General Questions
    2 Posts 1 Posters 237 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      alepan
      last edited by

      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);
      
      A 1 Reply Last reply Reply Quote 0
      • A
        alepan @alepan
        last edited by

        @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.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post

        56

        Online

        1.7k

        Users

        11.7k

        Topics

        101.8k

        Posts