Paul Barton-Davis wrote: > while (1) { > > ... arrange to sleep for about 33msec ... > ... get current SMPTE time ... > ... write enough qtr frame messages to catch up ... > } [...] > while (1) { > ... arrange to sleep for 33msec ... > ... get current SMPTE time ... > ... send corresponding qtr frame message(s) ... > } > > the difference is both subtle and obvious at the same time. Ah, yeah. I say an MTC generator wants to think like a sequencer. This gives that subtlety plus one you didn't go into: you don't literally try to sleep for 33 ms, because that will cause drift. You try to sleep until 33 ms after the current logical time (abstract time, score time), not after the current wall-clock time. -- Eli Brandt | [EMAIL PROTECTED] | http://www.cs.cmu.edu/~eli/
- [linux-audio-dev] rtlinux, MIDI timecode Paul Barton-Davis
- Re: [linux-audio-dev] rtlinux, MIDI timecode eli+
- Re: [linux-audio-dev] rtlinux, MIDI timecode Paul Barton-Davis
- Re: [linux-audio-dev] rtlinux, MIDI timecod... Benno Senoner
- Re: [linux-audio-dev] rtlinux, MIDI tim... Paul Barton-Davis
- Re: [linux-audio-dev] rtlinux, MID... Benno Senoner
- Re: [linux-audio-dev] rtlinux, MIDI tim... eli+
- Re: [linux-audio-dev] rtlinux, MIDI timecod... Bill Gribble
- Re: [linux-audio-dev] rtlinux, MIDI tim... Paul Barton-Davis
- Re: [linux-audio-dev] rtlinux, MIDI timecod... eli+
- Re: [linux-audio-dev] rtlinux, MIDI timecode Yann Orlarey
- Re: [linux-audio-dev] rtlinux, MIDI timecode Paul Barton-Davis
- Re: [linux-audio-dev] rtlinux, MIDI timecode Stephane Conversy
- Re: [linux-audio-dev] rtlinux, MIDI timecode Benno Senoner