I considered using the FilterTree to replace pitches in given positions list with rests. I wonder if it’s possible to adjust this function (or use a different one) that would literally delete a pitch in given position and replace it by a rest of the same duration value? What I’m getting now with FilterTree is an insertion of a rest at the assigned pitch position, where by the remaining pitches are shifted, producing a longer sequence. Ultimately, what I wish to achieve is a type of systematic filtering reduction of pitches in a sequence. In this process, positive/negative (0 0 0 1 0 …) values referring to the placement of pitches to be filtered (0=rest, 1=pitch) would be preferable from a list of indices (0 1 2 3 4 …) as currently found in FilterTree.
Thank you!