HISE Logo Forum
    • Categories
    • Register
    • Login

    CC value outside of controller callback

    Scheduled Pinned Locked Moved Scripting
    5 Posts 2 Posters 484 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

      Inside the controller callback I assign the value of a CC I'm interested in to a slider. Then I can check the slider's value in any other callback if I want to know the current value of that CC. Is this the best way to do it or is there a more direct way to check the value of a CC outside of the controller callback?

      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

        Use a variable?

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

          @Christoph-Hart Actually I did this too but I found one problem with both approaches, when the instrument is first loaded you have no idea what the CC value is until the user moves the controller.

          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

            Thats what the default value parameter in the cc modulator is for.

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

              @Christoph-Hart Oh, that makes sense! Thanks!

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

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

              40

              Online

              1.7k

              Users

              11.7k

              Topics

              102.0k

              Posts