[PD] emulating the behaviour of a midi keyboard: trouble with repeated notes

Claude Heiland-Allen claudiusmaximus at goto10.org
Mon Nov 9 12:09:06 CET 2009


Athos Bacchiocchi wrote:
> The problem appears if the new note coming has the same pitch than the previous one. This is impossible for a "real" midi keyboard, in fact a key can be played again only after it has been released.

Ok.  Think about this sequence of events:

Note On 60
Note On 60
Note Off 60
Note Off 60

How should this be interpreted by the voice allocator?

A)
Voice 1 Note On 60
Voice 2 Note On 60
Voice 2 Note Off 60
Voice 1 Note Off 60
|    ----    |
|------------|

B)
Voice 1 Note On 60
Voice 2 Note On 60
Voice 1 Note Off 60
Voice 2 Note Off 60
|    --------|
|--------    |

Think about how you want your voice allocator to behave, and if the 
behaviour of [poly] does not meet your needs, then you probably have to 
write your own voice allocator that does.


Claude
-- 
http://claudiusmaximus.goto10.org





More information about the Pd-list mailing list