< Back to IRCAM Forum

Posn-order bug?

Hello,
I am doing a patch to filter out a chord-seq according to velocities and i am using the posn-order function to cut out either the softest or loudest notes according to their velocity degree.
It seems that the function is not working when in the input sequence there is duplicate values, like (55 102 59 77 53 53 57 54 55 51 51 51)
or am i doing something wrong?

Hi Alessandro
as far as I can see (POSN-ORDER '(55 102 59 77 53 53 57 54 55 51 51 51) '<)
returns (6 11 9 10 3 4 8 5 7 0 1 2)
which seems a correct result to me…

can you be more specific ?
Jean

Hi,
POSN-ORDER gives a correct result. Same as Jean.
This patch should do the trick but monophonic only. i.e chords of one note.
I let you reprogram it for polyphony.

Jean-Michel

filtrer-notes.omp.zip (2.79 KB)