HISE Logo Forum
    • Categories
    • Register
    • Login

    Sliders not responding to "Consumed" MIDI CCs

    Scheduled Pinned Locked Moved Solved Scripting
    20 Posts 4 Posters 211 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.
    • CyberGenC
      CyberGen
      last edited by

      Hey guys,

      I'm having the weirdest problem. Sliders are not responding to their assigned CCs even though the CC is showing as "consumed". In other words it appears assigned to the knob, but does not move it. I have not clue what's causing this. Is there a knob setting I should be ticking? I'm afraid I may be missing something glaringly obvious. But I must have done something during development that screwed this up and now I don't know how to fix it. Any tips on how to troubleshoot this?

      I put together a one-knob demo snippet but I'm afraid it won't be of much help.

      thx.

      HiseSnippet 919.3ocsUsrbaaCEEPVzMV8wzzIq5JNdkbapinjeHmrvIV1NUShczT53o6x.ABZgQf.bH.Ssxic4mH6xWP+E559Yz+f9GzdAHUDUhbhGMsbgDAtuN3xy8fAYJJSqUYHbiyljxP3uxKbhzLp2HBWh5eHBupmgoMnCljRzZVDBiW4gVa30pibO+89GPDDIkMaKD5bEmxdLOgals6f6+HtPbLIhcFOoh2ac+9TkrmRnxAbrhWKTJgNlbA6Th0sZdnelnGgv+fW63gz1w61oavdA6s6V6EDrc2ga0pMMZ685zYmNQws6R1oKDzpGEwMprPCAPOBW+.UzjvQpeSVTfy4Z9PAytH.EBUtX6iUhH6QztKp2HtHZvzFjFAYYvr10JEsqa4cBOh+98m019VmA+YQTsAhqMO7VYN3EbUvaAPBWAR0KfzM8BoY7TyLKV77kd8kFVVLA9NUEJE9hp8JrWOE3gzrYBYL63LXw6inY6VstsO7yF2qQi6bmPlwvkWn2jJXjL647wv+xlVqbofKY9w4Rpgqj9J4ijpgA1bmoDMopjTkDpxs8eNQjy1nwKarFXTqDrMSy3RSy0O2Z3t9q6+ik9buFuFx7T3cAyzaZVZttK6quwlZ6ttZziHDCABTy4KMjkJf5Tkg8D.w1x230M7+PSwwKzVYtDrrEZ1xqy9TA1TlmLjkU8vacD91MOgv65QHnEsjJNpj8kbySRYxqhEiJ6iVxSIp.WMNpy2TRcBE7HVFhCLjuvy0DQN.WNy9t291+bezS6eHwPllFHiPURYYFt8.fOj8bPAnfQtl2gL8XiJ04a4mNPp4yVzKgNA96gJNw9xOAunMSrsgUcNfR3QQB1.klaayUjj9CsgkFxegCwu7V+9C+qW7l8SppZgPIjKqJhoyii4W5jah4hDsAvT+DPEBg+NumpY9QrXRtv3qGC4AH4iYQmob9i93gPX7WEkKHl40DrJmkFr.t5fncXSBGjIUA0GJTT+p4Est15XWW3dSuAbCczhwasEfWfK7+MdKkc+ZuihiYTyLvV263e8Spw9eCT9EUtU56DBPOrrySySBgqsnL.IRISXmcw0rSYEqaYWa6LgLYjaw+.OkFCrqwkFClZDHlzL0ynEylVQ9a31Avjzcg3ZdmXW6O+PYAmFzheFkNep9n.aurA1YYCbqkMvsW1.2YYCb2kMvte9.sWU9fbiJoXbBgNYvQNQTL9HIAXiNlK5eAdPwoS.
      
      ulrikU CyberGenC 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        Maybe setCustomAutomation can help - https://docs.hise.dev/scripting/scripting-api/userpresethandler/index.html#setcustomautomation

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

        CyberGenC 1 Reply Last reply Reply Quote 1
        • ulrikU
          ulrik @CyberGen
          last edited by

          @CyberGen Your snippet is working here, midi cc is received and knob is moved

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

          CyberGenC 1 Reply Last reply Reply Quote 0
          • CyberGenC
            CyberGen @ulrik
            last edited by

            @ulrik I suspected that would happen. Thanks for taking a look. What would be your guess as to what the problem is?

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

              @CyberGen What channel are you sending CC data on?

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

              CyberGenC 2 Replies Last reply Reply Quote 0
              • CyberGenC
                CyberGen @d.healey
                last edited by

                @d-healey I'm sending channel 1 and receiving in all channels.

                1 Reply Last reply Reply Quote 0
                • CyberGenC
                  CyberGen @d.healey
                  last edited by

                  @d-healey I have also tried with different controllers. And the weirdest thing is that when I right click on the knob after "learning the CC" it gives me the option to remove the learned CC, which suggest that it's HISE is receiving MIDI just fine, but then doesn't move the knob.

                  ChazroxC 1 Reply Last reply Reply Quote 0
                  • ChazroxC
                    Chazrox @CyberGen
                    last edited by Chazrox

                    @CyberGen I had some wierd bug regarding midi and I found on the forum somewhere that if your buffer settings in your DAW are 1024 or higher it would break the midi in some way...I thought that it sounded bogus until I tried it and it fixed my problem. Just throwing that out there because it seems your out in the deep like I was so it wont hurt to try!

                    CyberGenC 1 Reply Last reply Reply Quote 4
                    • CyberGenC
                      CyberGen @Chazrox
                      last edited by

                      @Chazrox good tip! thanks.

                      1 Reply Last reply Reply Quote 0
                      • CyberGenC
                        CyberGen @CyberGen
                        last edited by

                        @CyberGen @Chazrox @d-healey @ulrik So by process of elimination I narrowed down the source of the problem to my customLoadPreset namespace. I am using:

                        uph.setUseCustomUserPresetModel(onPresetLoad, onPresetSave, true);
                        

                        Something about this seems to be severing the MIDI CC connection. It works as far as recalling all my components, processors, modulators' values and attributes. But it seems to be the cause of the MIDI CC problem. When I don't "include" it, things work as expected.

                        Do you have any experience with this custom user preset model function?

                        ChazroxC d.healeyD 2 Replies Last reply Reply Quote 0
                        • ChazroxC
                          Chazrox @CyberGen
                          last edited by

                          @CyberGen I haven't rolled my own user preset handler myself yet.

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

                            @CyberGen Why are you using that?

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

                            CyberGenC 1 Reply Last reply Reply Quote 0
                            • CyberGenC
                              CyberGen @d.healey
                              last edited by

                              @d-healey So, I use it primarily to recall the state of attributes from multiple processors as well as some objects that contain data values. It's complicated but it works great for that purpose. However, it is clearly causing this issue for me. Just by commenting out the function and restarting HISE all knobs work properly with their assigned CCs.

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

                                @CyberGen Yeah I think once you're using a custom preset data model you have to handle everything. I haven't used it myself so can't offer much guidance.

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

                                CyberGenC 2 Replies Last reply Reply Quote 0
                                • CyberGenC
                                  CyberGen @d.healey
                                  last edited by

                                  @d-healey it's weird because it's been great with everything else, it offers much more control over what you can restore with presets. I'm using a custom preset browser as well. So, everything works except for MIDI CCs. Which I'm not really messing with.

                                  1 Reply Last reply Reply Quote 0
                                  • CyberGenC
                                    CyberGen @d.healey
                                    last edited by

                                    @d-healey if the MIDI channel is -1, does that mean all channels or undefined?

                                    CyberGenC 1 Reply Last reply Reply Quote 0
                                    • CyberGenC
                                      CyberGen @CyberGen
                                      last edited by

                                      @CyberGen so, I added a midiAutomationHandler as well as mah.getAutomationDataObject() and mah.setAutomationDataObject() to my custom save and load functions respectively. It's still not working. Additionally I added mah.setUpdateCallback(midiDataObj) for good measure. Still not working.
                                      I noticed that in the midiDataObject all Channels show as -1. But not sure if this means undefined or all.

                                      @Christoph-Hart lil' help?

                                      CyberGenC 1 Reply Last reply Reply Quote 0
                                      • CyberGenC
                                        CyberGen @CyberGen
                                        last edited by

                                        @CyberGen @ulrik @Chazrox @d-healey here is an updated snippet with a minimal example of the custom save/load function. The function is initially commented out so the knobs should move with your controller after you assign them. Then uncomment the function to test if controller still moves the knobs. Please let me know if they move for you. thx.

                                        HiseSnippet 1099.3ocsV0saZbDEdVi2l.8G0TkGfQ4p0UV1.FiskUTvFiaPwXi5lX0qZzvryZl3gYPyNqaHUQpWzWh7nz65qReC5aP6YlcMrj.0VnlUHf4bly47c9e6qUTVR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2S.anTQoBhY90V1k64Lf5+41UX2GHS3lIEW9++1tr6KDejeetgNbwXbsEfQnV6yAFyeCfu1uSbLLaeF.W2+ze5yy5dzOpRsKQ6QLZNTq3ed5nP3slnLv5RISXm+3slsCO6bU6YaDHjIibG9G3ImYM6Yubl0tkIZDgpUull0kaeGiG5n.XR5derx98rmwKn4dDTE9ZJcdU8IBVeUEbmUUvFqpf6tpB1bUEbuUUv8uaAsCINJEV.m01fP852wML1yqiaJhqZE8u+I.ZsB
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • CyberGenC CyberGen marked this topic as a question
                                        • d.healeyD
                                          d.healey
                                          last edited by

                                          Maybe setCustomAutomation can help - https://docs.hise.dev/scripting/scripting-api/userpresethandler/index.html#setcustomautomation

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

                                          CyberGenC 1 Reply Last reply Reply Quote 1
                                          • CyberGenC
                                            CyberGen @d.healey
                                            last edited by

                                            @d-healey you genius!

                                            This re-establishes connection. I haven't fully tested it with all knobs but it looks like this solves the issue. It does create a bunch of additional steps, so I'm not sure that I won't run into more trouble, but I can live with that.

                                            I wish you would have posted it 20 minutes ago, before I posted the issue on github. 😬 I'll remove it.

                                            thanks man.

                                            d.healeyD 1 Reply Last reply Reply Quote 0
                                            • CyberGenC CyberGen has marked this topic as solved
                                            • d.healeyD
                                              d.healey @CyberGen
                                              last edited by

                                              @CyberGen said in Sliders not responding to "Consumed" MIDI CCs:

                                              before I posted the issue on github

                                              I got the notification about the github post and it reminded me to check in here :)

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

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

                                              31

                                              Online

                                              1.8k

                                              Users

                                              12.0k

                                              Topics

                                              104.3k

                                              Posts