A technical support community for Apple Logic Pro users.
Dewdman42 wrote:no, the scripter script is changing the midi channel on notes within a certain range.
Palimpsest9 wrote:Dewdman42 wrote:no, the scripter script is changing the midi channel on notes within a certain range.
Yes, that's what it should do. However, after I recorded some drum hits, all incoming notes (in multi-timbral track 1) are in channel 10, even after I tried changing them to some other channel with scripter. For example, with this simple code:Code: Select allfunction HandleMIDI(e) {
var chan = 1;
if (e instanceof Note) {
if (e.pitch >= 1 && e.pitch <= 127) {
e.channel = chan;
e.send();
e.trace();
}
else {
e.send();
e.trace();
}
}
else {
e.send();
e.trace();
}
}
Dewdman42 wrote:The code you posted above does exactly what its supposed to do on my system, it causes all midi events from pitch 1 to 127 to be sent on midi channel 1.
Atlas007 wrote:Logic will record the MIDI events as it receives them, unless it is altered via the MIDI THRU settings.
If your drumpad emit all its MIDI events on channel 10, all the events will be recorded as channel 10's MIDI events.
The Scripter (and the other MIDI Fx) will convert on the fly those events before they reach the software instrument plugin.
IOW, the MIDI events route is the following:
drumpad (USB drumkit) -> MIDI THRU -> MIDI region -> MIDI Fx (scripter) -> Software instrument (Chipsounds).