Disable midi learn
-
Is there a way to disable MIDI learn on certain controls? I'm sure I saw an option for it once but can't see it now.
-
@d-healey It is only for scriptPanels
enableMidiLearn
-
@ustk Aha that's where I saw it, thanks. Looks like I might have to tinker with the source code again...
-
@d-healey I was looking for something similar! There are some knobs in my interface which I don't want to be tweaked in real time, so it would be great to disable the MidiLearn.
-
Okay by editing the HISE source it's pretty simple to add an "Enable Midi learn" button for knobs and buttons but there's something interesting. If you disable
saveInPreset
this also prevents MIDI learn, which seems strange. I can think of reasons why you'd want saveInPreset to be enabled but MIDI learn to be disabled (my use case is I'm rolling my own MIDI learn system as I only want specific components to be learnable).What I propose is removing the link between saveInPreset and MIDI learning completely and instead having a separate Enable MIDI learn button. Any reasons against this? @Christoph-Hart ?
-
I think MIDI Learn has to be paired with saveInPreset because the Midi assignments are per preset, not global. I actually learned this from you @d-healey haha. Maybe that doesn't matter though?
-
@Lunacy-Audio But what if you want to save a control's value is a preset but you don't want it to have MIDI learn, or you want it to have MIDI learn but you don't want the CC assignment saved in the preset.
-
@d-healey Would definitely love that flexibility! This might have been an arbitrary decision, but perhaps there's some deeper implication in HISE I'm unaware of that makes them inextricable.
It scares me that even comboboxes use Midi Learn, meaning you could assign your mod wheel to a list of convolution impulses responses or a sample map selector. Seems super dangerous if abused
-
@Lunacy-Audio I disabled the midi learn <> saveInPreset link, and added a separate enable midi learn property and it "seems" to be working fine. I can choose which things I want to save in preset and which things I want to MIDI learn and they are unrelated. I need @Christoph-Hart to chime in and let me know if I'm doing something stupid before I commit to this.
-
@d-healey Cool ;) so if the link is removed, it would be good to have a property
saveMidiLearnInPreset
right? -
@ustk If you enable saveInPreset and you enable MIDI learn then it will save the MIDI learn in preset anyway, no need for an extra option.
Currently when you click the saveInPreset button it triggers this function
s->setCanBeMidiLearned(newValue);
which makes no sense to me. -
@d-healey Sounds like the soil was ready to seed the midiLearn system but it hasn't been done...
Ok for the saveInPreset link ;) Have you had the green light for a pull request? -
@ustk Waiting for our benevolent leader to confirm that this is not a terrible idea before I do it.
-
The deed is done:
It's available in my fork - https://github.com/davidhealey/HISE/tree/scriptnode
I've also made a pull request so will be in the main repo soon I expect @Christoph-Hart.
-
@d-healey Good Job Sir
Can You Implement This For Fx Plugins, It's Only Available In Instruments As Far As I Know!!! -
@Natan Nope, I'm crap at C++, I just hack at it.
-
@d-healey Any issues with this yet? I'm tempted to add it to my build too.
-
@Lunacy-Audio Nope seems fine, I got the blessing from Christoph in a pm.
-
Woot! Awesome, great to know.
-
@d-healey I am getting this error.. Unable to Compile.