MIDI Sync

Discuss Lemur and share techniques.
Post Reply
xanadu
Newbie
Posts: 11
Joined: 08 Jan 2012 16:04

MIDI Sync

Post by xanadu »

I'm writing a sequencer fo the Lemur. All the code is in the Lemur itself, so I try to avoid using MaxMSP / MaxForLive.

I try to synchronize this sequencer using MIDI sync from Ableton Live ver. 8.2.8 on Windows 7. MIDI is transported over WiFi by loopMIDI and the Lemur deamon.

MIDI signal F2 gives me the current songpos. MIDI FA signals the start of Live Transport, MIDI FC signals the stop and MIDI FB signals continue of the transport.

I catch the ticks on MIDI F8 to keep my sequencer in sync with Live. This works well, execpt that sometimes a tick is missed. This means that my sequencer starts lagging behind, which of course is not good. I don't know if the missing ticks were never sent by Live, or that the Lemur fails to pick them up.

Has anyone else succesfully used MIDI sync to sychronize with a host?

Cheers,

Willem.
mat
Regular
Posts: 124
Joined: 08 Dec 2011 09:21
Location: Germany
Contact:

Re: MIDI Sync

Post by mat »

Hey Willem,

i once tried a lot of Lemur scripting including clock implementation. expamples might be Modumat16step sending synced CCs (http://liine.net/en/community/user-library/view/59/) or a basic stepsequencer (http://liine.net/en/community/user-library/view/89/) But I stopped development and switched to max in 2009. So...I am no more really into it.
As far as I remember, the problem with lemur clock implementation is that calculation is based on framerates of the lemur. These might differ with different workload. Therefore in projects with huge memory sequencer performance can get even worse. However, if it is not about variation/instability of clock in common, more about a linear delay there are 2 ways to go:
- set linear delay via framerates on the lemur...I remember I once tried this with an adjustable slider and quite good results, but can not find this old module anymore :roll:
- change the clock settings of your DAW. Thats the more easy way. In most you can adjust the linear timeshift +/- in msec within the preferences.
Linear delay is quite normal on a Midiclock. In my max/msp sequencers I also use it, mostly about - 27msec.

Or wait...did you mean you loose a whole tick from time to time?
That would mean the effect is getting bigger over time... never had this problem.
As said: No more into it, but maybe have a look at the Midiclock container at Modumat....

Hope that helps
and curious about your sequencer :)

mat
Lemur modules and sequencer: http://music-interface.com
Setup: Win7professional 32bit, Intel Core 2 Duo @ 2,66 GHz.,Tascam US-144MKII, Ableton Live 8.4,
Arturia Analog Lab., Max/Msp, Maxforlive, Lemur Legacy + Ipad, Akai MPK61, Doepfer Pocket Control
Post Reply