Forum

    • Register
    • Login
    • Search
    • Categories

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

    General Questions
    2
    10
    124
    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 Paradis
      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.healey
        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.

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

        1 Reply Last reply Reply Quote 0
        • Alex Paradis
          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.healey 1 Reply Last reply Reply Quote 1
          • d.healey
            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.

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

            Alex Paradis 1 Reply Last reply Reply Quote 0
            • Alex Paradis
              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.healey
                d.healey last edited by

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

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

                Alex Paradis 1 Reply Last reply Reply Quote 0
                • d.healey
                  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.

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

                  1 Reply Last reply Reply Quote 0
                  • Alex Paradis
                    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.healey
                      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?

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

                      Alex Paradis 1 Reply Last reply Reply Quote 0
                      • Alex Paradis
                        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 😛

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

                        11
                        Online

                        810
                        Users

                        5.5k
                        Topics

                        51.9k
                        Posts