This is a high level "what's the best architecture" sort of question:
I'm looking to schedule individual notes of music to play at specific times and receive the equivalent of a callback (or interrupt) when the note starts playing (so code can calculate the next note(s) to play).
I can sort of/maybe do this with Java MIDI "meta" events (see
http://www.jsresources.org/faq_midi.html#add_text_meta),
but the MIDI architecture is fundamentally the opposite of what I want to do. Ie. MIDI plays a predefined set of notes and I want to dynamically calculate the notes to play based on recent events.
It would be nicer if the API had some feature to play a note at a specific time, but I can program my own timer interrupts if that's necessary.
So to summarize:
* How can I easily play a single note without using the MIDI infrastructure (maybe using a H/W specific synth API?)
* It would be nice if I could find an API that would play the note at a specific time and has a callback/interrupt feature that gets invoked when the note is played.
Thanks
Ben Slade
Chevy Chase, MD
Start Free Trial