max patch to generate control data

Learn about building and using Max for Live devices.
Post Reply
michelebagaglio
Posts: 27
Joined: Fri Sep 11, 2009 7:25 am
Location: den haag
Contact:

max patch to generate control data

Post by michelebagaglio » Wed Sep 23, 2009 8:23 pm

Hi folks,

I have written a patch that implements a "cellular automatic" recursive map to generate chaotic data.

I would like to feed this data via ctlout to live's midi ctrl inputs.

Until now I had no luck in collecting the data sent through by ctlout, and could use a micro lesson on how midi is routed out of max and into live...
Can anyone help me please? Thanks in advance.

ciao
producer, dj, multi-instrumentalist - IT/NL
http://www.myspace.com/mbglitchcore

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Re: max patch to generate control data

Post by hoffman2k » Wed Sep 23, 2009 8:59 pm

Create a second MIDI Track to record the MIDI from. Set its input to the Track you wish to record from.

The reason a clip won't record anything from a device that is on the same track is because the chain of events is: Clip > MIDI Effect > Instrument. The second MIDI Track can intercept the MIDI from pre or post MIDI Effect.

michelebagaglio
Posts: 27
Joined: Fri Sep 11, 2009 7:25 am
Location: den haag
Contact:

Re: max patch to generate control data

Post by michelebagaglio » Sun Sep 27, 2009 2:24 pm

Hi there,

thanks for replying, but I'm afraid my question is not clear enough.

Regardless of where the instrument is placed (in the same track or aother track), there is no sign of any midi CC data leaving max's ctlout object and somehow re-entering ableton.

Please note we are not talking about midi note events getting filtered/modified, I am trying to send control data into ableton - and use it to control parameters in other instruments with other clips.

E.G. Say, I have an operator playing a clip, and I want to change the LFO rate with a midi CC pattern I produced in max4live. Hook everything up. Turn on the generator and the clip to play. Activate "edit midi map" to map the CC from max to the lof rate ctl in operator. Nothing happens. Note that the "midi track in" indicator is completely lifeless.

Maybe by using the raw midiout object?

Thanks,



PS I just found out bendout works fine, and pitch bending info is sent through properly. Unfortunately one cannot rerout this information to other controls - ableton interprets it only as pitch bend input and thus bends the pitch accordingly. the throughput information also does not seem to activate the "midi track in" indicator.
producer, dj, multi-instrumentalist - IT/NL
http://www.myspace.com/mbglitchcore

Jean-Francois Charles
Posts: 22
Joined: Sun Jun 28, 2009 5:24 pm

Re: max patch to generate control data

Post by Jean-Francois Charles » Sun Sep 27, 2009 10:39 pm

From a M4L device in a MIDI track (for instance Track 1), you can output CC data via a [ctlout] or a [midiout]. Now, you can use these CC in another MIDI or MIDI Instrument track by choosing the (for instance Track 1) as midi input.
Now, you cannot get this midi data in the mapping part of Ableton, I'm pretty sure it's not possible. MIDI that is output by a track cannot be accessed by this mapping part of Ableton.

Something else: if you want to get this CC data in an audio track, you cannot use the system described above (also given by hoffman2k). What you could do is not use MIDI, but a good old send/receive pair (not sure it's such a "good" solution, but it is an old one if you come from the Max world...)

Best,
J-F

michelebagaglio
Posts: 27
Joined: Fri Sep 11, 2009 7:25 am
Location: den haag
Contact:

Re: max patch to generate control data

Post by michelebagaglio » Mon Sep 28, 2009 4:30 pm

Thank you J-F,

as far as I understand your message, it seems like at the moment it's not possible to perform the operation I was trying.

Do you refer to a send-receive pair in max, for throwing CC around between patches? That's an intereseting hack.

I will try throwing the CC data into the IAC bus in Max and extracting it from there in Live.
producer, dj, multi-instrumentalist - IT/NL
http://www.myspace.com/mbglitchcore

nq
Posts: 112
Joined: Sun Dec 05, 2004 10:47 am
Location: Cologne
Contact:

Re: max patch to generate control data

Post by nq » Wed Sep 30, 2009 6:22 am

have you tried some midi-routing device, that lets you exchange midi data between applications such as the IAC port in OS X or midi-ox or virtual midi router on windows. try sending the cc-data to the IAC-port and turn on automation-midi-receive for that port in ableton live.
live should now receive the CC data.

sorry for the sloppy explanation. just got up and no coffee yet

michelebagaglio
Posts: 27
Joined: Fri Sep 11, 2009 7:25 am
Location: den haag
Contact:

Re: max patch to generate control data

Post by michelebagaglio » Thu Oct 01, 2009 12:32 am

yep makes sense even without coffee. I think that's the only way to get this done. Thanks for the tip!

ciao

m
producer, dj, multi-instrumentalist - IT/NL
http://www.myspace.com/mbglitchcore

Post Reply