Hi Erik,
    You're looking for functionality (sorting by timestamps) that just 
doesn't exist. Adding that to PortMidi would require creating a thread 
and figuring out how far in advance it should run in order to transfer 
pending messages to the device driver -- too early, and you stall 
messages with earlier timestamps; too late and you introduce timing 
errors. PortMidi limits functionality to what is available and common to 
the underlying API's. Most applications need some scheme to iterate over 
Midi data or launch scheduled function calls in increasing time order, 
so throwing note-offs into the schedule is not a big effort. Probably it 
would be worth writing a generic scheduler in Python for situations like 
yours. -Roger

_______________________________________________
media_api mailing list
media_api@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to