HISE Logo Forum
    • Categories
    • Register
    • Login

    CC value outside of controller callback

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

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - 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.

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - 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!

              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

              22

              Online

              2.0k

              Users

              12.7k

              Topics

              110.1k

              Posts