Paul Davis ([EMAIL PROTECTED]):

> i'll rephrase :) find me someone who is generating MIDI sync (i would
> call them "clock") pulses on Linux ...

  I guess . . . :)  Seems like a pretty important 'feature' to me. :)

> you're also not carrying usecs over from each computation. i found
> that the "error" could accumulate fairly quickly.

  I think I do carry:

        while( diff > usecs_per_tick ) {
                diff -= tt;
                ++midiclockcounter;
        }

  After this while, diff is set to how many usecs have past since the
beat we last played was supposed to be played.  I then subtract that
from the current time, an call that last_sec, last_usec.

  So, our next due date occurs sooner if we're late.  This (hopefully)
compensates for error.  Am I wrong?

-- 
Billy Biggs                     [EMAIL PROTECTED]
http://www.billybiggs.com/      [EMAIL PROTECTED]

Reply via email to