Global Midi Learn(not saved in preset) Possible?
-
@johnmike yes what I was suggesting is user assignable
-
@d-healey gotcha...my apologies for misreading...Id love to see a minimal example of how this can work/be implemented...
-
HiseSnippet 1261.3oc0V0saaTDEdVmrEroTQQ8AXj4FGoTW6jRAAB0z33TrJIwBmVgDBpFu6YsG7tyrZlYiy1nbGOObOWAuJ7Fva.blcWauNwooxhdA6EVdN+Memyb9quR5AZsTQbpdZZLPbtq6fTgYbmwLtfz6.hy8bOhoMfhlSZ+zXlVC9DGmMdtkfS0MIYe+8S2mExDdvBRDxqjbO363QbyBp826E7vvCY9vo7nRR+3854IEcjgxDDOa31hDy7lvFAGyrhUwk3bmt9biTMvvLfl3r49R+zAikSE4x+JtlOLDrGZSFfFJm7gxPeKhsTIcFyC86Oyu0DzJ8WDE1HOJ7.2i3974zWDM9jLFzEZTNd3TYY3swRvqcY30pD7VAjbJAoMygz8cG3o3wlEbr34ib6IvGm.FF1KCkbYIU9LW2NRTBgoYDaBbnBOLWiFOoUqso3Oa800pofQzH1X52P6JFwEPSOEftg0ceVhQFwLbo3aYB+PP0vpPsZn3M0f4kw9nfcXggCw2qFAIBOqrMPprstnV0G8HJbFnRoF74lZFCzDMlOgZpoREUAQxy.MkQ6zgdFKLAnAHYFcJ2eDXPE3Z5Hqvd3U.9Ma1rZspnWokgPyXEWXZTWHmR8kTsLBP4EiPkMiyUkKPykC+5HtuhlFkMPjAUj4kYNFWDhA.5LGgJE6mXLRQaanTICa3IihkBLntcNf2pVtaxCnoxD5Tl.gsz5gYt6x9kHclmYkMJQaxbrbvlAalfxTJVZt7Hqb40nHLCU.fu05iYmAkCZOzd8yiZnsh3ZsMTDnjQY3Hjqy.jfxQiMWwoX0HcHT7P3aitEurKd3O.CPXxSzIC+Evyz3GunFE+pWDPvTh5eEcmc1Nm57TTjX84Ya0K3dDySI6I7gyQ1OrcAUrlQYPBsZ1pfRWgOdt87yGlDFdcorTupjCl.SWhPFFPmMWyYW4yLFEeXhArv7EB4v10mKOluZ.qUCXgZ.od41qxk2c2+m6x671b4exVQfEDy5ff4Uclk42ndQMQ8srYJEQk4MAtZICZoRkSGKMvIhFYkM0trF8prBBVIuEg9Ux1NMQ81TrgHIZHnJWzZEDawtbea2atuc4wJd4gkRBJE8DbyIwf3lF1PJhkXO9JEnBE0j0g+dEc3GDx8AEgiMx+.2r7RRFfKOWk7Nq7NqP4W1yVOamyT.GDhw3yO258NG.mgCsym5T08.POwHiwKZ9aOFgtUDe97K7OC2Kcwse7d3xDwC3uYFh16udyu9TxMa677nLaW0sHoxZcWm.T6T6e9c7OZraXOQeEfIi1Afks3cu0PzBzRLkQ6OinM09xemLAIQbeb9WeolayrJs6yeT1qt3A+1ysdUT40iHjH14k2VRmDDvOOaul.dXjFqLi6Egq6Pb9T2WpApODvRBMT8DzN3DoIf+oxL4IWe8.bwDoeRHyr71J1UzJXXAb4UDrcHDnijVFT+msBy6JDuuaetwa7pwXkUfQaky6ALVr32G61MH.mvs.fa5d3O79YKOx2KSL3.5iX3SuMi93jnA3tud.d6BADZaE4TwVrmetk8rMBL.D9YG9G7qfYa6YmBlsmwDS5vQOu1Kuagc0xOLiBhIQ1V0UcyFNQWQOFLYm+ZOukM00Tbm0UwcWWEe75p3mutJ9j0UwuXcU7KucEWdybTfi52MqstiSWACy.yxVI+K8uE4BA
- updated with a slightly more obvious and useful example...
One thing the documentation does not make clear is that calls to setAutomationDatafromObject() expects an array of JSON objects one for each widget that you want to see assigned.
-
@Lindon maybe im missing it... this is the same basic behavior...as soon as I click a new preset it kills whatever user mapping I have assigned unless I save it in preset...maybe im missing something either in my communication or in my understanding...Im sure it's my understanding...maybe explain a bit deeper
here's a video showing...plus it crashes HISE whenever I assign the button
https://www.dropbox.com/scl/fi/hfifi0npxlhzmdezxuhq9/knob-assign-on-2024-10-29-at-12.00.12.mov?rlkey=98jilrqsfs0kcsnh7wdp8vsin&dl=0 -
@johnmike the snippet shows you how to get and set the CC values for any control in your interface, once you have this data you will need to save it into a file as David suggests.
You will then need to set up a UserPresetHandler and add a setPostcallback function that will execute when the preset has finished loading, at this point you should read your saved file and apply it, thus setting the CC values back to your preferred(saved) state.
-
@Lindon ok thanks...starting to make sense now...I'll mess around with this a bit and see what I can do with it!
-
@d-healey Is there any chance of you share a snippet of this? I understand the concept of what you said but can't really make it. Newbie here.
-
@drey said in Global Midi Learn(not saved in preset) Possible?:
Newbie here.
I think you need to go up a level first :)
All the pieces are here and in the documentation, if you put them together you will level up, if I do it for you you stay where you are.
-
@d-healey It's alright! I understand. Anyway, I've been learning a lot by reading you guys topics. Just finished my first synth plugin \o/.. Thanks man!
-
@Lindon Hi, pardon me! how could i save and load the midi cc value individually like a preset using this script, and i can replace the default values by right clicking midi assignment on the knob UIs. Thanks, seriously I'm willing to pay for a good solution if you don't mind.
-
@Sawatakashi said in Global Midi Learn(not saved in preset) Possible?:
@Lindon Hi, pardon me! how could i save and load the midi cc value individually like a preset using this script, and i can replace the default values by right clicking midi assignment on the knob UIs. Thanks, seriously I'm willing to pay for a good solution if you don't mind.
the solution is right there in the snippet and the follow up post from me....