jimdilian Posted December 5, 2019 Share Posted December 5, 2019 does anyone knows a script to clone Midi Note 7 (G-2) to let's say Midi Note 1 (C#-2)? so when I hit the Midi Note 7 will play 7 and 1 midi note? and I looking for the same but with CC so When CC4 moves CC20 will move to ? like a clone? I've searching for this 2 scripts on the net but just can't find them... maybe because I using the wrong words..in english.. Thank very very much in advanced if any one knows how to do any of this 2 things with logic pro x script Quote Link to comment Share on other sites More sharing options...
David Nahmani Posted December 5, 2019 Share Posted December 5, 2019 Do you want to do that for all notes? And all CCs? If yes, then you can use the Modifier MIDI FX plug-in for that. Click "Thru". Use one Modifier for the Note vent, and another for the CC. Otherwise, you can use a Transformer object in the MIDI Environment to target specific note and CC numbers. Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted December 5, 2019 Share Posted December 5, 2019 Easy task for scripter too Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted December 5, 2019 Share Posted December 5, 2019 Here is simple CC clone, for example as you described,. function HandleMIDI(event) { if(event instanceof ControlChange && event.number == 4) { event.send(); event.number = 20; event.send(); } } Quote Link to comment Share on other sites More sharing options...
jimdilian Posted December 6, 2019 Author Share Posted December 6, 2019 Here is simple CC clone, for example as you described,. function HandleMIDI(event) { if(event instanceof ControlChange && event.number == 4) { event.send(); event.number = 20; event.send(); } } Thank you very much working now .. how can I do that for midi notes only 1 note ? so when I hit certain note let say Note 7 another midi note will play too for example midi note 1.. ? only for 1 midi note Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted December 6, 2019 Share Posted December 6, 2019 function HandleMIDI(event) { if(event instanceof Note && event.pitch == 7) { event.send(); event.pitch = 1; event.send(); } } Quote Link to comment Share on other sites More sharing options...
David Nahmani Posted December 6, 2019 Share Posted December 6, 2019 I believe you need to send the other notes also: if(event instanceof Note && event.pitch == 7) { event.send(); event.pitch = 1; event.send(); } else { event.send(); } } Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted December 6, 2019 Share Posted December 6, 2019 yea true, neither script does that, but I am tiring for writing scripts for people, just providing bare bones example, they can fill in the blanks. or you! good catch. Quote Link to comment Share on other sites More sharing options...
David Nahmani Posted December 6, 2019 Share Posted December 6, 2019 Yeah I understand. Believe it or not, this was my very first attempt at doing something/anything at all in the Scripter! This is truly empowering though. Quote Link to comment Share on other sites More sharing options...
jimdilian Posted December 18, 2019 Author Share Posted December 18, 2019 sorry where do I put the CC11 in the script ? logic receives CC11 from my keyboard and I will like .. to send CC11 and CC4.. like clone the cc11 so the instrument can receive 2 CC at the same time.. but I will use only 1 controller of course.. if(event instanceof Note && event.pitch == 7) { event.send(); event.pitch = 1; event.send(); } else { event.send(); } } Quote Link to comment Share on other sites More sharing options...
David Nahmani Posted December 18, 2019 Share Posted December 18, 2019 sorry where do I put the CC11 in the script ? The original question was about cloning CC4 to CC20. If you want to clone any CC into any other CC just replace the 4 and 20 values in Dewdman42's script. Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted December 19, 2019 Share Posted December 19, 2019 function HandleMIDI(event) { event.send(); if(event instanceof ControlChange && event.number == 11) { event.number = 4; event.send(); } } Quote Link to comment Share on other sites More sharing options...
jimdilian Posted December 19, 2019 Author Share Posted December 19, 2019 function HandleMIDI(event) { event.send(); if(event instanceof ControlChange && event.number == 11) { event.number = 4; event.send(); } } thank you working now ¡ but the note script does not works.. for me.. I mean it does.. but mute all the rest of the midi notes from my Electronic-Drum.. Quote Link to comment Share on other sites More sharing options...
Arnaud Posted December 19, 2019 Share Posted December 19, 2019 @jimdilian: Just read the discussion between David and Drewdman42 above in full and you'll have the answer to your last question, man. @David and Drewdman42: thanks a lot, you rock! Quote Link to comment Share on other sites More sharing options...
David Nahmani Posted December 19, 2019 Share Posted December 19, 2019 Yes, have you tried using my script here ——> viewtopic.php?p=756663#p755446 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.