A technical support community for Apple Logic Pro users.

 
Lytz1
Topic Author
Posts: 4
Joined: Fri Sep 05, 2008 6:52 am

Transpose Notes on Midi Channel 2 --> +12 semitones

Thu Aug 27, 2020 9:03 am

Hey guys,

need help with a little thing here.
I need a function that transposes every incoming note on midi channel 2 +24 semitones
and leaves everything on Midi Channel 1 alone (pass-through).

Anyone can help me here?

Thanks & best,
tL.
 
User avatar
Dewdman42
Posts: 3188
Joined: Tue Sep 09, 2014 3:01 pm
Location: Salt Lake City, UT

Re: Help needed (should be simple): Transpose Notes on Midi Channel 2 --> +12 semitones

Thu Aug 27, 2020 11:39 am

function HandleMIDI(event) {
    if(event.channel==2 && event instanceof Note) {
        event.pitch = event.pitch + 24;   
    }
    event.send();
}
OSX 10.15 (Catalina) on OpenCore - Logic Pro 10.6.2, VePro7, Mainstage3
5,1 MacPro 3.46ghz x 12 128gb ram
 
Lytz1
Topic Author
Posts: 4
Joined: Fri Sep 05, 2008 6:52 am

Re: Help needed (should be simple): Transpose Notes on Midi Channel 2 --> +12 semitones

Thu Aug 27, 2020 11:52 am

Awesome, thanks a lot!

Best,
tL.