Page 1 of 1

Communicating between two Lemur's

Posted: 06 Sep 2012 14:30
by samvoltek
I feel like I'm stuck on something very simple here.

I'm trying to send MIDI notes from stage to lighting desk via Wifi, Lemur, and CoreMIDI devices. Just using MIDI seems a bit shaky, dropping notes and sloppy timing, so I'm attempting to use OSC over the network as the connection works well when touching the pads, and seems to have lower latency than MIDI.

A bit more info if it helps:
The two iPad's are connected to a Wifi network created by an Airport Express router set to a static IP. There is no computer of internet connection involved here.
One iPad is connected to MIDI sequencers onstage via iRigMIDI, the other sits in an iDock feeding MIDI to the lighting desk. There's two Lemur patches, the sender patch is just a set of ten touch pads assigned to MIDI notes sent by a drum machine. At the receiving end there are also ten pads with the same MIDI note settings, named the same as in the sender, so they automatically share an OSC address too. I am using the same MIDI 0 and OSC 0 ports on each device.
This MIDI data is then fed to the lighting console through some switches to re-direct the notes to different notes, allowing rhythms to be freely assigned different light effects.

At each end the connection between MIDI and device (light desk/ MIDI sequencer on stage) works fine. In between, the OSC works fine.
I am stuggling to get the sending pads to output OSC on receipt of the MIDI message.

I thought it might do this automatically but there seems to be no trigger link between the MIDI and OSC settings on the touch pads?

I've tried using the following script triggered by the pad's assigned MIDI ON note:

oscout(0,'/BassDrum',{BassDrum.x});

Where BassDrum is the OSC name for the pad at both ends of the connection, also to no avail.

What am I doing wrong here?
Any help appreciated..
Sam

Re: Communicating between two Lemur's

Posted: 06 Sep 2012 14:45
by Macciza
Hi
Perhaps look into the ON_MIDI script execution option . . .
Then you could recieve the midi messages and use the script to send out the needed OSC.

Hope that helps
MM

Re: Communicating between two Lemur's

Posted: 06 Sep 2012 15:38
by samvoltek
Thanks for that Macciza. I think thats what I'm doing..

I have the following script line inside the BassDrum pad on the sending patch, executed by ON_MIDI (note on 36, channel 16)

oscout(0,'/BassDrum/x',{BassDrum.x[0]});

This is received by the BassDrum pad at the other end, but in a strange way... seems to be triggered by the note off's, plus some latency that isn't there when pressing the pad directly. Its definitely scripted to fire the OSC on the on's..

I am pretty confused so any advice is gold.. have to have it working for a show on Saturday ;)

Thanks again,
Sam