HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. CyberGen
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 103
    • Posts 458
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Sliders not responding to "Consumed" MIDI CCs

      @d-healey @d-healey said in Sliders not responding to "Consumed" MIDI CCs:

      setCustomAutomation

      Now that I've had a bit more time, there are a number of hurdles with using this method.

      Issues Encountered

      MIDI Learn disappears
      The "MIDI Learn" option no longer appears in the right-click context menu of knobs — unless an automationId has been manually assigned in the Properties panel.

      automationId overrides control callbacks
      Assigning an automationId disables the knob's regular controlCallback, which is where most of my knob logic lives (e.g., updating processors, linked components, states, etc.).

      Workaround via automation callback
      You can attach a callback to a specific automation and call the original controlCallback logic from there — but this adds boilerplate and breaks modularity.

      Avoiding feedback loops crashes HISE
      Trying to assign a knob as the target of its own automation (to bypass issue #2) results in an infinite loop that crashes HISE.

      Controller numbers don’t carry over
      If you switch the automationId to a new target, the MIDI CC assignment doesn't carry over. It must be learned again manually — making it difficult to share CC control across multiple processors or targets.

      🤕

      posted in Scripting
      CyberGenC
      CyberGen
    • RE: Sliders not responding to "Consumed" MIDI CCs

      @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.

      posted in Scripting
      CyberGenC
      CyberGen
    • RE: Sliders not responding to "Consumed" MIDI CCs

      @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.0VnlUHf4bly47c9e6qUTVRhRi7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TQoBhY90V1k64Lf5+41UX2GHS3lIEW9++1tr6KDejeetgNbwXbsEfQnV6yAFyeCfu1uSbLLaeF.W2+ze5yy5dzOpRsKQ6QLZNTq3ed5nP3slnLv5RISXm+3slsCO6bU6YaDHjIibG9G3ImYM6Yubl0tkIZDgpUull0kaeGiG5n.XR5derx98rmwKn4dDTE9ZJcdU8IBVeUEbmUUvFqpf6tpB1bUEbuUUv8uaAsCINJEV.m01fP852wML1yqiaJhqZE8u+I.ZsB
      
      posted in Scripting
      CyberGenC
      CyberGen
    • RE: Sliders not responding to "Consumed" MIDI CCs

      @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?

      posted in Scripting
      CyberGenC
      CyberGen
    • RE: Sliders not responding to "Consumed" MIDI CCs

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

      posted in Scripting
      CyberGenC
      CyberGen
    • RE: Sliders not responding to "Consumed" MIDI CCs

      @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.

      posted in Scripting
      CyberGenC
      CyberGen
    • RE: Sliders not responding to "Consumed" MIDI CCs

      @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.

      posted in Scripting
      CyberGenC
      CyberGen
    • RE: Sliders not responding to "Consumed" MIDI CCs

      @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?

      posted in Scripting
      CyberGenC
      CyberGen
    • RE: Sliders not responding to "Consumed" MIDI CCs

      @Chazrox good tip! thanks.

      posted in Scripting
      CyberGenC
      CyberGen
    • RE: Sliders not responding to "Consumed" MIDI CCs

      @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.

      posted in Scripting
      CyberGenC
      CyberGen
    • RE: Sliders not responding to "Consumed" MIDI CCs

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

      posted in Scripting
      CyberGenC
      CyberGen
    • RE: Sliders not responding to "Consumed" MIDI CCs

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

      posted in Scripting
      CyberGenC
      CyberGen
    • Sliders not responding to "Consumed" MIDI CCs

      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.
      
      posted in Scripting
      CyberGenC
      CyberGen
    • RE: Script Processor component state does not load with preset.

      @d-healey said in Script Processor component state does not load with preset.:

      Maybe it's the order of your scripts, put the secondary script below the Interface script.

      So, I was able to move the glide/arp script below the interface one. Unfortunately, the problem persists. I can't think of a reason why it would work inside of HISE and not in the compiled version. Any other suggestions?

      posted in General Questions
      CyberGenC
      CyberGen
    • RE: Script Processor component state does not load with preset.

      @d-healey Let me experiment moving things around a bit. Maybe a can split things up. I'll get back to you. I do think the solution could be there.

      posted in General Questions
      CyberGenC
      CyberGen
    • RE: Script Processor component state does not load with preset.

      @d-healey said in Script Processor component state does not load with preset.:

      Maybe it's the order of your scripts, put the secondary script below the Interface scrip

      I've thought about that, but I believe that is not an option for me. I've tried that in the past (not because of this issue) and nothing works. That processor handles arpeggiator and glide functionality.

      posted in General Questions
      CyberGenC
      CyberGen
    • RE: Script Processor component state does not load with preset.

      @d-healey yeah, that is the way I have all the controls linked. But that does not seem to automatically recall the state of the non-UI script for me. Even recalling all the controllCallbacks post load only works inside HISE but not in the exported app.

      posted in General Questions
      CyberGenC
      CyberGen
    • RE: Script Processor component state does not load with preset.

      @d-healey sorry, so when I link a control from the property editor, It takes over the controlCallback and only operates the linked component but does not run the controlCallback. Is there any other way to link them without loosing the controllCallback?

      posted in General Questions
      CyberGenC
      CyberGen
    • RE: Script Processor component state does not load with preset.

      @d-healey in doing that don't I loose the other parts of the controlCallback for that knob in the UI?

      posted in General Questions
      CyberGenC
      CyberGen
    • Script Processor component state does not load with preset.

      Hi,

      I have a script processor that handles arpeggiator and glide functionality. The components in this processor do not load their values when a preset is loaded, unlike the UI script. I’ve tried using customLoadSave and encountered the same issue. Looking for a solution, I created a callback that invokes all the control callbacks from an object after loading a preset. This works in the HISE editor but does nothing in the compiled application.

      I’ve put together a minimal snippet with a couple of knobs to demonstrate the problem.

      I think there might be a bug here, but I’m not sure. Can you help me confirm?

      thx.

      HiseSnippet 751.3oc0V0saSCCE1tqdhVfASvCPubCMgZZ65ZEWvX8GnZzsJxXh6lbcbVrVhcjiyfJDuI7vviDuAfcR1RKsZqqZfD4hHcNG+4yWN9ymSFIEDZTjPBfkOYRHE.eDxdBW40wCy3fAcAvMPCwQJprRpqClDhihnN.Hbs2Zb.KUDj77yWe.1GyIzbW.voBFg9dV.Sk6cz9Gx786icnmvBlZ0M1e.Qv6H7EwZ9rFpJHDSt.eN8HrYYEPf2gi7.vWfp4NlTycu5srZa0duFssr1s03FUqQb1sc85Mq63VqEtYKMn064vTBosBqnQ5M8.gyDaOwm4oI3TVDarO0XXAr0YN0MniGy2YzUEmH..VbTdoZszR0yQCYNrq8mWxdZRfJ4HltnAKbSTx5NPoBSQohoTZSjMQxBU4QL74YYdyYj0LTJMJ.9cTE2XNQwD7JB9QBE8X9VaW9qkKU9akmKjq6Bi0QvURguOUtvvlib4MAbKdbvXpbmJWh8ioWuP8m3r0MzxU2zJJEkqlZgB9.NScbHMyd9JKnSJHcMFlwJ8RUIU3Mxpk19LGpDvbLG2inZWdTI1+PtXLHg4SeK.7wAcwJ7U6mdq0oKjJULyWBrK8R8sjzSvRntznKThvj0FDJ3Fh.Kt7Y+KSm4IyPikUv7Pz.MKktX8k4EIT9AJ6y3kA3Kn8kZiqArUspU2oh901u5+Gwz52Who9BeGSs5dQX8j7ig+85p+L42IYktCnvI1GqlssnYfQV.8wzLRKSx3QL0joGnbG5UV8F6UtrTbSzHlh3sXNVXAbzzF9u.Gylv7XTOWWJQkSvhn9eZUGmbKo+ChXEie9PrRxzG1nihCr0ShITc14bpuomKrfQDmZW0Xap.1TtShwuzOYAsL1vrfVWEDDfIRwYjTouYF1CR7n4DOYFeI8OansqXMuVOPOR8LBY1sZNf0VUf0WUfMVUf6tp.atp.2aUA151AZ9im2DqDAoWa.fgi5kzaBB6wwZEXhZE7a.EOM24A
      
      posted in General Questions
      CyberGenC
      CyberGen