Forum
    • Categories
    • Register
    • Login

    CC value outside of controller callback

    Scheduled Pinned Locked Moved Scripting
    5 Posts 2 Posters 697 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.
    • David HealeyD
      David 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?

        David HealeyD 1 Reply Last reply Reply Quote 0
        • David HealeyD
          David 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.

            David HealeyD 1 Reply Last reply Reply Quote 1
            • David HealeyD
              David Healey @Christoph Hart
              last edited by David 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

              34

              Online

              2.1k

              Users

              13.0k

              Topics

              113.0k

              Posts