Hey @FAster77,
In the per-note mapping there’s currently no “any note” option (unlike CC mappings, which do have an “any value” equivalent). So mapping all 127 notes individually isn’t the way to go.
The better fit for your case is actually the port-level script — the one you add via the three dots (⋯) next to “Add New Mapping”. That script runs on every incoming MIDI message from the device, and inside it you get access to the midi object, which tells you the channel, note, velocity, etc. of each message. So you can do all your filtering in code.
For a Note On event, the midi object looks like this:
{
type: "note-on",
channel: 1,
note: 60,
velocity: 100,
raw: [144, 60, 100],
input: "Panda-Audio midiBeam" //your device's exact name here
}
So a single port-level script can handle all of channel 1 like this:
// only reacts to notes on channel 1
if (midi.type === "note-on" && midi.channel === 1) {
if (shared("drumsActive")) {
// your Resolume OSC command goes here
}
}
That should give you one script reacting to any note on channel 1, with no need to map each note separately. You can branch on midi.channel inside the same script to route your different controllers (keys 1, keys 2, launchpad, drumpad) however you like.
The “any note” option in the per-note dropdown is a nice idea though, I’ll pass it along as a feature request.
Would that work for your use case?