HISE Logo Forum
    • Categories
    • Register
    • Login

    Set value not passed to parameter

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 493 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.
    • d.healeyD
      d.healey
      last edited by

      I'm using the slider.setValue() function to set the value of a slider using a CC but this value isn't being passed to the linked parameter.

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

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        Yes, setValue() doesn't call the onControl callback for safety reasons, it just stores the value. If you're using an inline function as control callback, just call it manually after setValue.

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

          @christoph-hart Well I have a slider linked to an envelope's attack, it has no ui control callback, so to get it to update from the onController I'd need to get the envelope in a variable, and then setup a control callback for the slider, seems to defeat the purpose of using the parameter linking in this case though. What about having a slider.changed() function, like we have for panels?

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

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

          17

          Online

          1.7k

          Users

          11.8k

          Topics

          102.7k

          Posts