Hello sample-playback gurus,
This is the scenario:
I've made a little patch that uses poly~ for its standard purpose, and it works fine. It is used to play back percussion samples, with one unique buffer per MIDI note. The percussion samples are unusual in that they are quite long (up to 15 seconds duration). They are actually recordings of single strikes of various bells, some of which ring for a long time; one bell sample per pitch.
So the problem is that if I have some number of voices assigned to the poly~ object and a pitch (midi note) is played again while its previous strike is still ringing, poly~ will assign a new voice to the repeated note, resulting in the effect of having two bells playing in unison instead of the same bell being struck twice.
I need to have such a note assigned to the previous busy voice so that it cuts off the previous note if that note is still being played, (even if it is not repeated directly after, but has other pitches played in between the two same-pitch repetitions).
Hope this makes sense. Any suggestions? I can post a small eg patch to illustrate if someone asks.