Only allow to play 10 MIDI notes at the same time.

chrislos's icon

Hey Everyone,

I'm currently try to build a filter that only allows to play back 10 MIDI notes out of a polyphonic random midi signal.
I found out that it's not that trivial as I thought.

I tried to sketch a patch that checks every incoming midi note if it's already part of a temp array of all the 10 active notes. If the note isn't already in the list it should replace one entry of the list.

... I turned out to have a bunch of coll operations and still didn't get it to work properly.
Especially since the task "just allow to play 10 MIDI notes at the same time" sounds so simple I thought I ask here in the forum if someone else had solved a similiar problem?

In the end I'll try to play a mechanical solonoid-driven piano with it.

Thanks in advance,
Christian

Bill 2's icon

[poly 10]. Or [poly 10 1] if you want voice stealing.

chrislos's icon

Bill, thanks a thousand times. This is exactly what I needed.