RE: Midiclock
Davis Pyon <dmpyon-/[email protected]>
| Newsgroups | gmane.comp.audio.csound.tekno |
|---|---|
| Message-ID | <[email protected]> |
Hi Iain, I wrote an instrument that listens to MIDI Timing Clock messages. Here's what I did: kstatus, kchan, kdata1, kdata2 midiin kstatus = (kstatus != 0 ? (kstatus + kchan - 1) : kstatus) ; correct kstatus Then see if kstatus == 248 (or 0xF8) and if it does, it's a Timing Clock Message. You could transmit messages with a status byte of 248 to sync up external hardware. You might want to look into other messages like: 0xFA // Start 0xFC // Stop Hope this helps, Davis --- [email protected] wrote: > > It's unclear how much detail you want... Generally, MIDI sends a > > clock message and a Song Position Pointer to keep everything in sync. If > > Does anyone know exactly what these messages look like? As in what I need to > send out or get in using midiout and midiin? > > Thanks > > _______________________________________________ > csoundtekno mailing list > [email protected] > > Subscribe, unsubscribe, change mailing list options: > http://plot.bek.no/mailman/listinfo/csoundtekno __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ _______________________________________________ csoundtekno mailing list [email protected] Subscribe, unsubscribe, change mailing list options: http://plot.bek.no/mailman/listinfo/csoundtekno