Jordi B Posted April 16, 2018 Share Posted April 16, 2018 Hello, I play midi guitar and I set it to one channel per string (1-6). Sometimes I need to send a note on message to channel 1 to 6 at the same time in the same track, for controlling my multitimbral virtual instruments. I've seen in a previous topic a script for sending ccs to all channels which is awesome and works great. I would like to know if it's possible to do a similar script for sending notes messages to all channels. Thank you in advance Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted April 16, 2018 Share Posted April 16, 2018 Yes the same way Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted April 16, 2018 Share Posted April 16, 2018 More or less like this: function HandleMIDI(event) { event.send(); if(event instanceof Note) { var chan = event.channel; for (var i=1;i<=6;i++) { if(i!=chan) { event.channel = i; event.send(); } } } } Quote Link to comment Share on other sites More sharing options...
Jordi B Posted April 16, 2018 Author Share Posted April 16, 2018 Thank you a lot! That is what I asked for. The only thing is that I forgot to say that I need to send note messages to channels 1-6 only if the notes come from my Roland fc-200 pedalboard (set to channel 16) so the notes coming from my midi guitar (channels 1-6) are not altered. Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted April 16, 2018 Share Posted April 16, 2018 (edited) try this: function HandleMIDI(event) { if(event instanceof Note && event.channel == 16) { for (var i=1;i<=6;i++) { event.channel = i; event.send(); } } else { event.send(); } } Edited April 16, 2018 by Dewdman42 1 Quote Link to comment Share on other sites More sharing options...
Jordi B Posted April 16, 2018 Author Share Posted April 16, 2018 Yes! This script works just fine, thanks a lot Dewdman42. You made my day. Quote Link to comment Share on other sites More sharing options...
Jordi B Posted April 16, 2018 Author Share Posted April 16, 2018 Ups, now this script is preventing the other script (send midi ccs to all channels) from running. I guess this script can be changed a bit in order to let ccs pass through, but I can not figure out how... Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted April 16, 2018 Share Posted April 16, 2018 So let me make sure Ihave this right. You need all CC's going to all channels or just CC's from channel 16 copied to all channels? 1 Quote Link to comment Share on other sites More sharing options...
Jordi B Posted April 17, 2018 Author Share Posted April 17, 2018 I need all CC's going to all channels or going to channels 1-6 (better). The option for all CC's from channel 16 copied to all channels (or channels 1-6) will work well when using my foot controller, but will not work with other controllers (for example my guitar knob, which is hardwired to channel 1). I Hope this helps . Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted April 17, 2018 Share Posted April 17, 2018 This is the last version I will do....you will have to figure it out if this doesn't work. You should be advised, that if you copy all CC's all the time, it can cause a lot of needless midi traffic and burden your CPU, so you should try to to figure out where you actually need them and just copy those. function HandleMIDI(event) { if((event instanceof Note && event.channel == 16) || event instanceof ControlChange) { for (var i=1;i<=6;i++) { event.channel = i; event.send(); } } else { event.send(); } } 1 Quote Link to comment Share on other sites More sharing options...
Jordi B Posted April 17, 2018 Author Share Posted April 17, 2018 Now it works perfect. Thank you for your advice. Maybe I should go for copying CC's coming only from channel 16. Thanks a lot for your patience. 1 Quote Link to comment Share on other sites More sharing options...
ToniMazzotti Posted April 27, 2023 Share Posted April 27, 2023 How could I send each new MIDI note to a new channel from 1 to 6? I want to find out how to do polyphonic microtuning using pitch bend manipulations. 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.