HISE Logo Forum
    • Categories
    • Register
    • Login

    ControlCallback not working

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 59 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.
    • X
      xander
      last edited by

      Having issues with setControlCallback not working with knob. When I change the knob it is not calling the controlback function at all (I've tried Console.Print("..") in the inline function and it didn't print anything). Am I missing something, or is this something you can't do? (And yes I have tried timers, they cause Hise to crash for some reason).

      const var decay_time_label = Content.getComponent("decay_time_label");
      const var decayTime = Content.getComponent("decay_time");
      
      
      inline function onDecayControl(component,value)
      {
      	decay_time_label.set("text", decayTime.getValue());
      };
      
      decayTime.setControlCallback(onDecayControl);
      
      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @xander
        last edited by

        @xander Have you assigned the knob to a module using processor/parameter ID?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        X 1 Reply Last reply Reply Quote 0
        • X
          xander @d.healey
          last edited by

          @d-healey Yes, not via code, but just with the side panel.

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @xander
            last edited by

            @xander You can use processor/parameter ID or a control callback, not both.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            X 1 Reply Last reply Reply Quote 0
            • X
              xander @d.healey
              last edited by

              @d-healey Thank you! Makes sense, guess I can hardcode the parameter values.

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

              16

              Online

              1.7k

              Users

              11.8k

              Topics

              102.6k

              Posts