Lytz1 Posted August 27, 2020 Share Posted August 27, 2020 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. Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted August 27, 2020 Share Posted August 27, 2020 function HandleMIDI(event) { if(event.channel==2 && event instanceof Note) { event.pitch = event.pitch + 24; } event.send(); } Quote Link to comment Share on other sites More sharing options...
Lytz1 Posted August 27, 2020 Author Share Posted August 27, 2020 Awesome, thanks a lot! Best, tL. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.