6 Aug
2007
6 Aug
'07
8:04 a.m.
Stephen Sinclair wrote:
Note that it's not quite an up-to-scratch implementation of polyphony, since there is only a single event structure that will get overwritten by the next key press. [...]
I've got a (trivial, demo) synth here that handles polyphony from MIDI input. You could use a similar model to handle polyphony from keyboard events if you felt like it. One difference is that there wouldn't be any reason to spork the handlers (as is done with noteOn() and noteOff()) since they'd take a trivial amount of time. http://developer.kde.org/~wheeler/files/polysynth.ck -Scott