MIDI note timing

Tobiah toby at tobiah.org
Tue Sep 18 14:28:41 EDT 2018


I'd like to do some algorithmic composing using python.
I've seen various libraries that seem to be capable of
sending a MIDI message to a MIDI port, but I don't know
where to get the timing from.  Normally, with something
like CSOUND, the program locks itself to the timing of
the soundcard and presumably uses that for timing.

Is there anything for python that could do this?
I've seen rather ridiculous examples using sleeps for
timing, but for musical applications the timing really
needs to come form a hardware soundcard, especially
as I'd like to play audio through the card at the
same time and have it line up perfectly with the MIDI.


Thanks for any suggestions.


Toby




More information about the Python-list mailing list