There a 1000 questions, e.g. clocksource and the transport object ... but 1st things 1st.
i am working on a little sequencer to control a hardware synth module. For internal timing and metro control i use the transport object.
Next thing is to sync the sequencer to a daw. i use the sync object to calculate the bpm and let an internal metro do the rest.
Transport control is via the rtin object.
If i look at the midi data in a daw my max sequencer spits out, it is really out of sync.
I thought maybe the best way for synchronization is to use the rtin object and use the midi message 248. Here i encountered that the counter object is doing a really bad job when it comes to good timing. Maybe it is not a good idea to use the counter object for sequencing purposes.
Here is an example patch about using MIDI message 248 with a modulo object and with a counter object. Open a daw, make the midi setup that the patch recieves the transport and clock messages and the daw the midi notes the patch spits out ...