Take a look at OSC. It assumes that all computers' clocks are synced
via ntp, which is more than adequate to ensure its 64-bit fixed point
timestamps are accurate. This makes the programming easier and more
reliable, as you only have to program to your local clock. Relying on
an Ethernet LAN for heartbeat-style clock syncing is never a good
idea, as the MIDI specification describes (you don't see a Roland
keyboard assembling a TCP stack on its MIDI port, for example).
OSC does not define a transport, so you may use TCP or UDP or whatever
you want, as many others do. I highly recommend this as a solution for
you.
On 5/26/06, krampenschiesser(a)freenet.de <krampenschiesser(a)freenet.de> wrote:
On Fri, 26 May 2006 17:00:21 -0400
Steve <radarsat1(a)gmail.com> wrote:
Hi,
Do you mean that you are sending one packet after 256 notes have played?
No I send
one packet for each 1/256 note. Therefore only the timer needs to be a realtime process
and the actual software sequencers don't need to.
In that case, I assume you are using it to
periodically re-synchronize
independant clocks. If that's the case, the local computer should be
used to generate the MIDI clock according to its own clock. The local
computer's own clock can then by re-synchronized periodically with the
remote computer, which will automatically also re-sync the local MIDI
clock signal.
Does that make sense?
Well I didn't got this part right now, perhaps it's
too late.
But I solved my problem.
As I send a packet with each 1/256 note to my software sequencers I was caught in the
thought about 1 tact so 256/256.
But this is not nessesary as I could send the midi clock independently with just another
integer as counter int the for loop.
I don't expect that you understand this right now, but I write this if another person
could have the same problem.
Am I correct in understanding that MIDI is not
being sent over the TCP
connection?
No I use TCP to sync my software sequencers and want the midi clock to
sync any hardware.
Thanks for the help!
I should sleep right now.
Christian
--
I am not an Economist. I am an honest man!
-- Paul McCracken