split voices by velocity

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
gratkowski
Posts: 41
Joined: Tue Aug 21, 2012 12:50 pm

split voices by velocity

Post by gratkowski » Thu Apr 23, 2020 6:34 am

Hi,
how do I split a single voice score into two voices by a certain velocity as the split point? i.e. all pitches with a velocity lower than 60 should end up in the 2nd voice all >= 60 in the first voice. Somehow I can't handle the rests and durations properly.
If easy, I would also like to do the same within a roll object.
Thanks
Frank

danieleghisi
Site Admin
Posts: 1347
Joined: Fri Dec 03, 2010 1:25 pm

Re: split voices by velocity

Post by danieleghisi » Fri Apr 24, 2020 8:42 pm

Hi, in a roll object it's very easy, just send something like
[unsel all, sel note if velocity > 60, voice = 2]
or anything similar that matches your needs!
(Or you can do something similar by manipulating the lllls of individual chords and assigning them to the appropriate voice llll container, but that requires more work)
Hope this helps
d

gratkowski
Posts: 41
Joined: Tue Aug 21, 2012 12:50 pm

Re: split voices by velocity

Post by gratkowski » Mon Apr 27, 2020 1:56 pm

Hi Daniel,

thanks, the roll version will do it for now.

best

Frank

Post Reply