Solved MIDI learn menu not showing up
-
When I right-click a knob in an existing project, it just shows the menu to assign a CC but there is no button to MIDI learn. It was working previously.
If I create a new project and add a knob there is no problem.
Any ideas? Is this happening to anyone else?
-
@d-healey Are you using
MidiAutomationHandler.setControllerNumbersInPopup()
? I've deactivated the learn feature when that function is used (to avoid learning unlisted CC numbers). -
@Christoph-Hart Yes I am using that feature! Ok that explains it. I suggest adding that information to the description in the api browser too.
-
-
-
There's only 1 number I wanted to remove from the list, and I don't think it's worth giving up the MIDI learn for that. So I found a workaround :D
-
@d-healey until somebody uses the learn feature with a controller mapped to CC94 :)
-
@Christoph-Hart Yeah but that's how it's been for the last 6 years anyway :)
I think the only other solution would be to popup a message if they try and assign a disabled controller, to tell them they can't use that one.
-
@d-healey you can attach a callback / broadcaster to MIDI learn events to display a warning.
-
@Christoph-Hart Ooo that's a good idea, thanks!
-
For anyone else
const automationHandler = Engine.createMidiAutomationHandler(); automationHandler.setUpdateCallback(function(obj) { var excluded = [1]; for (x in obj) { if (excluded.contains(x.Controller)) Engine.showMessageBox("Internal Controller", "CC #" + x.Controller + " is used internally by the instrument. Assigning it to a control may cause issues. Please use a different controller number.", 4); } });
-
@Christoph-Hart is there a way to remove a CC assignment with scripting?