Forum
    • Categories
    • Register
    • Login

    linking slider to a simplegain, the other way around.

    Scheduled Pinned Locked Moved Scripting
    3 Posts 3 Posters 18 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.
    • J
      Jeetender
      last edited by Jeetender

      i have a filmstrip of a vumeter on a slider, iam just tryin to effect the slider values with the value of the peak on a simplegain, iam using the getAttribute function ,but the console says function now found. i could have used a matrixpeakmeter with laf to run the filmstrip but this is just how i want to do it.

      
      const var SimpleGain = Synth.getEffect("SimpleGain1");
      const var vumt = Content.getComponent("vumt");
      
      const var VUTimer = Engine.createTimerObject();
      VUTimer.setTimerCallback(function()
      {
          var peak = SimpleGain.getAttribute(SimpleGain.Peaks);
          vumt.setValue(peak);
      });
      VUTimer.startTimer(30);
      
      ulrikU David HealeyD 2 Replies Last reply Reply Quote 0
      • ulrikU
        ulrik @Jeetender
        last edited by

        @Jeetender I don't think the SimpleGain has an attribute named Peaks

        SimpleGain.getAttribute(SimpleGain.Peaks)
        
        //    try
        SimpleGain.getAttribute(SimpleGain.Gain)
        
        

        Hise Develop branch
        MacOs 15.6.1, Xcode 16.2
        http://musikboden.se

        1 Reply Last reply Reply Quote 0
        • David HealeyD
          David Healey @Jeetender
          last edited by

          @Jeetender Use a peak meter floating tile and look and feel.

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

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

          11

          Online

          2.3k

          Users

          13.6k

          Topics

          118.5k

          Posts