Forums > MaxMSP

controlling ableton live through midi messages in max

April 29, 2007 | 4:54 pm

hi everyone,
I’m just trying to make a patch at the moment and I’m having a lot of problems.
I’m trying to control synth preset changes in ableton live through midi messages in max / msp. My plan is to have buttons on a midi keyboard controller to send CC+1 / CC-1 messages functioning as a preset previous / next trigger. In my patch so far, I have only been able to recognise the previous / next buttons to send out a 1 / 0. How do I then use this data to compile the full midi message, and then send it to live?
I’m really stuck on this, and I’d appreciate any help, thanks.

below is what I have so far:

#P button 638 283 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 629 329 40 196617 2 79 1;
#P newex 629 361 107 196617 ctlout;
#P number 638 242 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 638 216 27 196617 < ;
#P newex 755 114 55 196617 route 192;
#P button 846 136 15 0;
#P number 680 242 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 858 281 32 196617 print;
#P newex 680 216 27 196617 >;
#P newex 729 170 27 196617 i 0;
#P newex 640 514 43 196617 midiout;
#P newex 858 44 37 196617 midiin;
#P connect 11 0 10 0;
#P fasten 0 0 8 0 863 100 643 100;
#P connect 8 0 9 0;
#P fasten 2 0 8 1 734 200 660 200;
#P fasten 0 0 3 0 863 100 685 100;
#P connect 3 0 5 0;
#P fasten 2 0 3 1 734 200 702 200;
#P fasten 6 0 2 0 851 162 734 162;
#P fasten 7 1 2 1 805 162 751 162;
#P fasten 0 0 7 0 863 105 760 105;
#P fasten 0 0 6 0 863 113 851 113;
#P connect 0 0 4 0;
#P window clipboard copycount 13;


April 29, 2007 | 5:34 pm

I think should do the job

best

Eryck


April 29, 2007 | 5:55 pm

excellent, thank you.
Just a thought- to communicate to ableton, will I need to use rewire? – or will the midi message just tranvel internally?
thank you for your help.
tom



FP
April 29, 2007 | 6:03 pm

you can use IAC bus, or maxmsp bus…
lot’s of thread about that.
did you search in the forum ?


April 29, 2007 | 6:07 pm

it should work internally
but you have to configure it into your Live preferences

ex: you choose "from Max" for midi in
if I well remenber it

ableton live and max works pretty well together

Eryck


April 29, 2007 | 10:39 pm

hmm… I’ve stilll been very unsuccessful sadly.I simply cannot get max to communicate with live. Live fails to see anything coming from a [midiout] in max, and I have set the preferences within live. Can anyone thing of anything else I can do?
Here’s how my patch is looking right now. I’m suprised ableton don’t implement these features in the application!:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 324 204 33 196617 pack;
#P button 324 156 15 0;
#P message 324 183 14 196617 7;
#P number 347 156 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 302 126 55 196617 route 192;
#P newex 96 279 43 196617 midiout;
#P newex 234 184 30 196617 pack;
#P number 274 156 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 234 156 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 234 126 40 196617 unpack;
#P newex 96 247 429 196617 midiformat;
#P number 128 176 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 98 126 40 196617 unpack;
#P number 506 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 438 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 370 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 166 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 62 169 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 98 76 37 196617 midiin;
#P newex 98 100 423 196617 midiparse;
#P fasten 15 1 18 0 352 150 329 150;
#P connect 15 1 16 0;
#P connect 7 0 2 0;
#P connect 9 0 14 0;
#P connect 1 0 0 0;
#P connect 0 0 7 0;
#P connect 7 1 8 0;
#P connect 0 1 3 0;
#P connect 0 2 10 0;
#P connect 10 0 11 0;
#P connect 11 0 13 0;
#P fasten 19 0 9 2 329 233 239 233;
#P connect 10 1 12 0;
#P connect 0 3 15 0;
#P connect 18 0 17 0;
#P connect 17 0 19 0;
#P connect 16 0 19 1;
#P connect 0 4 4 0;
#P connect 0 5 5 0;
#P connect 0 6 6 0;
#P window clipboard copycount 20;


April 30, 2007 | 7:19 am

hello

did you set the midiout on "from Max/Msp 1" (or 2)?
and of course the same in Live preferences ?

also in your patch I see a pack object (the control change)
without any output …?


May 3, 2007 | 8:52 pm

Hi Eryck,
thank you very much for your help, I got there in the end!
I didn’t realise that I had to channel the midi out of midiout to maxmsp 1. Very unfamiliar with midi routing like this.
Thanks again, and I’m sorry to be a pain.
Tom


Viewing 8 posts - 1 through 8 (of 8 total)