Page 1 of 1

Control Lumidesk from MaxMSP

Posted: Sun 9 Jan 2011 11:24
by plc66
I've spent a bit of my time lately on MaxMSP, and found a way to control LumiDesk in more personal manner.

To get the trick going, you need Lumidesk Ultimate, a good ASIO sound card (I used a Focusrite Saffire PRO 40), the MaxMSP software (DL possible for a demo period of 31 days @ http://www.cycling74.com and a MIDI program called loopbe1 (DL for free from http://www.nerds.de), and optionally a second screen , that helps.

The idea is to create a MAX patcher to analyse the audio input of the soundcard and generate real time MIDI messages. These messages are sent to LD via the MIDI loop created by loopbe1. These MIDI messages are interpreted by LD to output scenes and finally send DMX signals to our beloved fixtures ...

In the following example, the audio analyser creates a MIDI note every kick of the music... this note triggers a scene in Lumidesk in Live mode, in this particular case just a general white flash.

That sounds convoluted and useless at first sight, but the result is nice. A lot of modifications have to be done to get a rock solid result. The main thing is that it works just as an additional layer, all your LD sequencing is kept intact.

On the MAX side, you need to spend 3 hours doing the tuts to get a rough idea of how the software works. I'll try a make an EXE when I'll get my patch ironed off.
Copy the code at the end of the post and paste it in the Patcher widow ...
Except the following steps, do not touch anything yet .
Adjust the adc~ block to you audio input (click), and the noteout block to the loopbe1 MIDI port. The midiin and midiout block at the bottom left are here to connect a MIDI device and merge the signal to the patcher output (useful if you have a MIDI controller).


From there on, in Lumidesk , switch the MIDI input to loopbe1. In Live mode right click on a scene and set the MIDI note (MIDI learn) by sending a message from MAX (ctrl click on the "50" message box in the patcher window (that's the time you appreciate the second screen) to send one note. Tick the Flash mode box once Lumidesk has "learned" the note.

In MAX, lock the patcher and switch to presentation mode. The setup is complete.

Here comes the fun :
You've got a spectrum display of the input signal in the top of the window.
The second display is a multifilter that can be operated by clicking on it !
You can play with the graphical filter, set the mode to anything (LP HP BP etc) and see the soundwave affected by the filter. The level graph displays the average output of the filtered signal, and a slider adjusts the detection threshold level.

I haven't implemented yet a MIDI clock signal, but we can easily imagine that the behaviour of the tempo can be adjusted to whatever suits you...

The possibilities are limitless : I'm gonna try and make a level graph out of 8 par cans :) , and a small sequencer to vary the effects !!!

Enjoy your geeking ...

To the developpers. The message box "set shortucut" every time I use the CTRL key in other softwares (pretty often), how can I deactivate the function ???

<pre><code>
----------begin_max5_patcher----------
2963.3oc0bszipiiEdc0R8+gHzrZDEieamdwHMql0ilksZMJ.ofzUHgNIbq6
cZM2e6iekPBEABI1.2ZQQrIjbNe97xGer+ye9mdY1x7uFWNK3WB90fWd4Ok8
7htOUOuT2wKy1E80UoQk5abVV7G4K+8YyseWU7Wqz8uKYcRRVS+YG1kjkFWo
+Qv5deKOqJKZWr9W7OJRhRa+CxOT8oeQxZ88JekuhatWyMV8s8wFZeVRljH9
s1ukxj+q9KgnEf592GUsZaR1l+SQ7pJyujwjecf.KTePT2a.Br.D7a5ex+6m
+I0mxOl6D7QR2tBf.mAfBgyFAD.o.EaGxzePBc.FjFu9J740GsCAMOh8Ewkw
YUQUI4YsIbLUQqTBnljqI7AJmbFvf.zOSgf12yrMwno8QiR6hKKi1D+YQEJ3
7nGxIpQhv90iFmRDFCZAZXzB57.nvKZQq1Fk0BxlnRD9bvC+BvybiHz7IXwo
FrnFgWfCT2px2rIMdxZbhAaf8BrE5SJNilszLw44JvMvUnAIteFV5UHxXSjY
9vxZz1VCVkuaWblQ1blyk1+6d0NfGbmZkB3BvQKASTJ3szbIu3JMdzY.BZ+.
g7kGoU2WJM6LNHw5Qgybm9t+gDBzqXBh5bLoOUn8QqdO.D3UOpH9s6QEtfFR
gB90UlB4ZTBB7ILkkWE2azoXmDcJgMahHgDBnmFi5QCwo4El6V1OEDJlqt.w
ITn5JBWPvxqfSC9NraYbgWMFwurY4qn2M.vjXbNGRLXoSjp7OrH7MrTqsQHt
CV5apfQuGqT3jlI4A8ErO1M3V3.LjatX5PG7yFpNq5Ij.gblRqjyDLDWqoNU
UydmMUYU9deZ8mc04opgESLjgnEBPXHjTOCIe33vnYabaXsbJtySgsrJpn5i
jr04e3Sr2ONdIPcXI5rAwagedBl7I.AACS5rVCdgTWlx8qzoIKaZyrXnOk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