HISE Logo Forum
    • Categories
    • Register
    • Login

    Any way to know what Midi CC is connected to a slider?

    Scheduled Pinned Locked Moved General Questions
    10 Posts 2 Posters 897 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.
    • Alex ParadisA
      Alex Paradis
      last edited by

      Hi everyone,

      Is there a way to get access to the MIDI CC that is attached to a knob in the Code?

      Like I Midi Learn a specific slider, and then in the code I can know which Midi CC it is attached to.

      Thanks again for the help!

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

        9184978a-38e6-4081-9f37-58b2bba02600-image.png

        Since this returns the index of the control you should be able to compare it against the controls you have to find the correct match.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        1 Reply Last reply Reply Quote 0
        • Alex ParadisA
          Alex Paradis
          last edited by

          Then it's doable if I put this in the "OnController" and get to know which index it is controlling?

          d.healeyD 1 Reply Last reply Reply Quote 1
          • d.healeyD
            d.healey @Alex Paradis
            last edited by

            @Alex-Paradis If you're using it in a deferred callback that should be ok but it might not be so good in a real-time script.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            Alex ParadisA 1 Reply Last reply Reply Quote 0
            • Alex ParadisA
              Alex Paradis @d.healey
              last edited by

              @d-healey I see, I will check on this quickly on my side.

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

                I just tested and the function doesn't seem to be returning anything... weird.

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

                Alex ParadisA 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey
                  last edited by

                  Hmm it's strange, it just returns -1. Also what will it return if there is more than once control using the same CC.

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

                  1 Reply Last reply Reply Quote 0
                  • Alex ParadisA
                    Alex Paradis @d.healey
                    last edited by

                    @d-healey
                    It works on my side but it gives me only the position of the CC in the Midi Learn Panel, not which element it is attached to.

                    I can know if the controller is attached to a CC, but I cannot know which one it is.

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

                      Things are really strange in my version, Message.getControllerNumber() is returning 33 when I move my mod-wheel and 11 and 43 when I move expression pedal.

                      Can you post a snippet?

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - Public HISE tutorials
                      My Patreon - HISE tutorials

                      Alex ParadisA 1 Reply Last reply Reply Quote 0
                      • Alex ParadisA
                        Alex Paradis @d.healey
                        last edited by

                        @d-healey

                        So I had no choice to create a new little hack in Hise to be able to get the CC Number that is attached to a Automated Parameter.

                        I will probably gonna need to send it to @Christoph-Hart and see if he wants to implement it in future Hise Releases :P

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

                        32

                        Online

                        2.0k

                        Users

                        12.6k

                        Topics

                        109.8k

                        Posts