Rory,
        If the resolution is 10000, the callback will be called every 10
seconds. I haven't checked the code, but my guess is the first call occurs
*after* the first delay. Normally, one uses small values, e.g. 1 to 5ms, so
no one has noticed an initial delay. If there's a compelling reason the
first callback should occur immediately, maybe the code should be changed.

On midifiles, I do not want midifile code in PortMidi, but there are plans
for a "PortMidiFile" library. A problem is that there is no standard or
obvious internal representation for midifile data, nor is creating a
standard midi file a simple matter of writing sequential midi data because
there are tracks, tempo maps, and other curious details that must be
inserted at the right place in the file.

I can point you to some midifile parsing code and internal representations
that I use. I'm in the midst of making revisions, and will announce when the
next version is ready.

        -Roger


_______________________________________________
media_api mailing list
[email protected]
http://www.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to