Jump to content

Script to "clone" Midi note? and CC ?


jimdilian

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

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();

}

}

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...