Jump to content

CAL Script - Remove Voices


Recommended Posts

Hi all,

I'm looking for a script that would allow me to remove the first or second voice of a melodic line while keeping the unison parts.

Is this possible?

For example, when the flutes play together, nothing is deleted, but when they split, I would like to be able to remove the top or bottom line.

Best

Link to comment
Share on other sites

When you say "unison", do you mean voices on the same pitch or an octave apart? Either way, the two voices would first need to be combined in a single MIDI clip (with events on different channels if they're on the same pitch). Then it would be possible to write a CAL to do that but I don't know of one that exists, and it wouldn't be trivial enough for me to want to try it for fun. ;^)

Do you run into this situation enough to justify needing a script for it? I would think it's not that difficult to do manually in the PRV with the two voices in separate tracks.

 

Link to comment
Share on other sites

By "unison," I indeed mean the same pitch. I often import MIDI files from a notation software where two instruments are on the same track 12.png.2fea399c4bc273c9b3eaf2b211232180.png.

A script like this would allow me to quickly delete the top line for the entirety of Track 1

1.png.efbec82665307948f9a8d704b46d12e6.png

And the bottom line for Track 2. That’s all I need—nothing more  :)

2.png.61c72e584293ada4189b3a8493c37e4d.png

 

Without even needing to separate them into two tracks

Link to comment
Share on other sites

I have tried similar, but it is not easy. With this particular example you can delete the top instrument, except for notes that both play. That just leaves a few to delete manually. And ditto for the bottom octave.

And in future don't put 2 instruments on the same track in the notation software

With CAL the track can be scanned and if there are 2 notes the top(bottom) one can be deleted. But they would have to start at the exact same time. Down to ticks.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...