Cymbal choke MIDI Alesis Nitro Mesh MainStage
Hi
I'm posting this is a follow-up to this thread that is now closed so I couldn't reply to:
Cymbal choke MIDI - Apple Community
I have an Alesis Nitro Mesh kit connected to MainStage and managed to find a way to get the cymbal choke to work.
The steps I used are:
- Select a kit (I used SoCal+)
- In the channel strip under MIDI FX select Scripter
- In the script window enter the following script:
function HandleMIDI(event)
{ event.trace();
if (event instanceof PolyPressure) {
if (event.pitch == 49 && event.value == 127) { // The number 49 might be different on different drum modules. If so, use one of the two pitches when you choke your crash. It is of the type of PolyPressure.
var event = new NoteOn;
event.channel = 10;
event.pitch = 28;
event.velocity = 1;
event.trace();
event.send();
var of = new NoteOff(event);
of.trace();
of.send();
} else if (event.pitch == 57 && event.value == 127) {
var event = new NoteOn;
event.channel = 10;
event.pitch = 29;
event.velocity = 1;
event.trace();
event.send();
var of = new NoteOff(event);
of.trace();
of.send();
}
} else {
event.send();
}
}
4. Click Run Script
When the script runs you should see the MIDI messages appear in the window below. I think what the script does is look for the MIDI events sent on cymbal choke (which at least on my kit are pitch 49, value 127, with PolyPressure) and replaces this with a cymbal choke sound (pitch 28). You can probably tweak it from there if you want different behaviour.
I found the script here: Drum kit designer, cymbal chokes & roland v-drums - Logic Pro - Logic Pro Help (it refers to Roland v-drums and Logic Pro, but I found it also worked for the Alesis kit with Mainstage).
Posting here in case it helps someone.
MacBook Air 13″, macOS 10.15