MidiSetSyncMode


Set the synchronisation mode of MidiShare.

pascal void     MidiSetSyncMode (unsigned short mode);

mode
an unsigned 16-bits word of structure 'xarrrrrrpppppppp'.
x, b15
is used to choose between internal synchronisation (x=0) and external synchronisation (x=1)
a, b14
is used to choose between synchronisation on port p (a=0) and synchronisation on any port (a=1)
r, b13_b8
is reserved for future use and must be set to 0.
p, b7_b0
is the synchronisation port to be used when x=1 and a=0. When a=1 the port number is ignored, the first port with incoming MTC is used.


Set the synchronisation to external, on any port.


MidiSetSyncMode(MIDISyncExternal | MIDISyncAnyPort);


Set the synchronisation to external, on port 18.


MidiSetSyncMode(MIDISyncExternal | 18);


Set the synchronisation to internal.


MidiSetSyncMode(MIDISyncInternal);