Page 1 of 2

Any Max/MSP users?

Posted: Fri Mar 14, 2008 2:06 am
by phulu
Hey,

I am working on a college project which involves connecting max/msp with Ableton. The problem I am having is trying to send number/note out of max to trigger clips in Live using MidiYOke.

I first open the midi mapping window in live and click on the clip I want triggered. I then go to Max and and send a bang to noteout object. When I hide the midi mapping window in Live, the clip just keeps triggering and crashes.

I am not sure what I am missing! Has anyone got this working?

Thanks in Advance
Phil

Posted: Fri Mar 14, 2008 2:22 am
by Tone Deft
you need to see the midi data. the simplest answer is probably right and that is that you're sending the same note on/off on/off very quickly over and over again.

download midi ox
http://www.midiox.com/

or C6 form elektron
http://www.elektron.se/support/

to monitor the midi data.

***************************************

edit - and make sure you don't have a midi loop
options-preference-midi in Live use port 1 for input, port 2 for output if you need that.

Posted: Fri Mar 14, 2008 4:14 am
by LOFA
Sounds like you used a metro where you should have used a bang.

If you start a sequence of events in max, it will just keep sending midi notes or cc's to Live. Although I am sure there is a more elegant workaround, I tend to connect bangs to each ctlin or notein so that I can assign midi maps safely. Be careful when mapping into live, because it's very easy to create max apps that are sending commands all over the place. As a rule of thumb, when working with midi and control changes, do not open the midi map while max is running.

Posted: Fri Mar 14, 2008 5:11 am
by stjohn
yo.. i was checkin out Phulu's patch earlier...

the Midi map page works a charm, but then when going to actually trigger the loop, its goes crazy..

I actually tried it with Midi ox as Tone suggested, just there, and something weird happened.. no msgs actually sent.. then when i closed max..they all showed up on MIDI OX.

:?
weird!! sounds like Midi Yoke was choking on something!

Posted: Fri Mar 14, 2008 5:58 am
by Michael Hatsis
Post the patch and ill take a look at her if you want.

Posted: Fri Mar 14, 2008 6:40 am
by Tone Deft
mike@TrackTeam Audio wrote:Post the patch and ill take a look at her if you want.
we'll do your homework for you. ;)

j/k, kinda. save the patch as a .txt file, then post it. others can copy and paste the text into a new patch.

Posted: Fri Mar 14, 2008 6:45 am
by Lo-Fi Massahkah
Yeah, yeah. I wanna have a look as well. :D

Posted: Fri Mar 14, 2008 7:07 am
by mdk
are you just connecting 1 port from max to live? i.e. max out to live in? or are you connecting a loop?

if you are connecting both ways then *dont* use the same midi yoke port for both directions, use 2.

someone posted exactly this question on the max forum (maybe you're on the same course..) I replied there with a test patch which worked fine :

http://www.cycling74.com/forums/index.p ... oto=132925

:)

Posted: Fri Mar 14, 2008 9:23 am
by kronk
agree with mdk here... sounds like a midi feedback loop to me

Posted: Fri Mar 14, 2008 10:25 am
by hoffman2k
Banging the notein? What about note offs? Are you using makenote or something similar?

Posted: Fri Mar 14, 2008 1:10 pm
by phulu
Thanks for the quick responses.

If you have time take a look at the patch from the following links:

Text Format:
"http://www.stasiscollective.com/MaxPatc ... (Text).txt"

Patch:
http://www.stasiscollective.com/MaxPatc ... gClips.rar

Will keep working on this so will let you know of any further developments.

Cheers
Phil

Posted: Fri Mar 14, 2008 4:40 pm
by Lo-Fi Massahkah
As text...
max v2;
#N vpatcher 34 55 1315 922;
#P origin -89 -23;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 749 461 23 196617 125;
#P message 717 461 18 196617 65;
#P message 682 461 18 196617 21;
#P newex 688 486 49 196617 makenote;
#P newex 688 537 40 196617 noteout;
#P newex 597 438 46 196617 noteout f;
#P message 887 268 43 196617 Duration;
#P number 887 284 35 9 10000 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 742 378 15 0;
#P number 700 378 35 9 0 0 128 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N counter 0 0 10;
#X flags 0 0;
#P newobj 700 344 82 196617 counter 0 0 10;
#P button 664 378 15 0;
#P number 622 378 35 9 0 0 128 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N counter 0 0 10;
#X flags 0 0;
#P newobj 622 344 82 196617 counter 0 0 10;
#P number 480 220 35 9 0 127 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 480 203 42 196617 Velocity;
#P newex 542 438 46 196617 noteout f;
#P newex 781 316 49 196617 makenote;
#P newex 542 316 49 196617 makenote;
#P message 781 293 18 196617 72;
#P message 542 294 18 196617 48;
#P button 781 273 15 0;
#P button 700 273 15 0;
#P button 622 273 15 0;
#P button 542 273 15 0;
#P newex 780 250 88 196617 if $i1 > 0 then 1;
#P newex 700 250 88 196617 if $i1 > 0 then 1;
#P newex 622 250 88 196617 if $i1 > 0 then 1;
#P newex 542 250 88 196617 if $i1 > 0 then 1;
#P toggle 780 220 15 0;
#P toggle 712 220 15 0;
#P toggle 645 220 15 0;
#P toggle 577 220 15 0;
#P message 780 203 49 196617 Area 4;
#B color 6;
#P message 712 203 49 196617 Area 3;
#B color 6;
#P message 645 203 49 196617 Area 2;
#B color 6;
#P message 579 203 49 196617 Area 1;
#B color 6;
#P newex 584 170 615 196617 unpack 1 2 3 4 5 6 7 8 9 10;
#P newex 57 610 94 196617 prepend /integer;
#P newex 56 580 52 196617 pack 0 0 0;
#P message 398 707 35 196617 Attack;
#P message 332 707 66 196617 Brightness;
#P message 256 705 48 196617 Loudness;
#P message 178 703 29 196617 Pitch;
#P number 398 723 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 332 723 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 178 719 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 256 721 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 216 628 92 196617 analyzer~;
#P newex 217 594 28 196617 adc~;
#P hidden newex 28 146 62 196617 route text;
#P user textedit 9 118 125 135 32896 3 9 chan chan;
#P hidden newex 28 204 92 196617 prepend /symbol;
#P hidden newex 28 174 47 196617 tosymbol;
#B color 5;
#P comment 700 4 100 196617 port 4447;
#P window setfont "Sans Serif" 18.;
#P comment 472 0 217 196626 Reciving OSC from vvvv;
#P window setfont "Sans Serif" 9.;
#P newex 498 55 216 196617 osc-route /kinetic /nuclear /mass /thermal;
#B color 5;
#P hidden newex 498 26 91 196617 udpreceive 4447;
#P message 1 38 143 196617 string with the tag /symbol;
#P message 136 118 161 196617 3 integers with the tag /color/1;
#P message 299 118 191 196617 1 integer toggle with the tag /toggle/1;
#P message 297 39 148 196617 2 floats with the tag /float/1;
#P message 135 38 171 196617 2 integers with the tag /integer/1;
#P comment 220 95 15 196617 B;
#P comment 181 95 15 196617 G;
#P flonum 388 60 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden button 163 233 15 0;
#P hidden newex 144 264 50 196617 pack 0. 0.;
#B color 5;
#P hidden button 97 233 15 0;
#P number 244 60 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 85 264 44 196617 pack 0 0;
#B color 5;
#P hidden newex 195 204 87 196617 pack brgb 0 0 0;
#P hidden newex 186 301 93 196617 prepend /float/1;
#P flonum 297 60 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden button 140 164 14 0;
#P hidden newex 134 206 55 196617 pack 0 0 0;
#P number 134 139 31 9 0 255 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 210 139 30 9 0 255 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 171 139 31 9 0 255 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 370 300 94 196617 prepend /color/1;
#P hidden newex 272 300 99 196617 prepend /toggle/1;
#P toggle 293 139 14 0;
#P hidden newex 85 301 94 196617 prepend /integer;
#P number 135 60 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 155 486 132 196617 udpsend 10.0.1.199 4445;
#P user panel 246 140 29 14;
#X brgb 66 0 0;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P comment 140 95 15 196617 R;
#P window setfont "Sans Serif" 18.;
#P comment 134 2 202 196626 Sending OSC to vvvv;
#P window setfont "Sans Serif" 9.;
#P window linecount 32;
#P comment 458 1 9 196617 I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I;
#P window linecount 1;
#P comment 333 7 100 196617 port 4445;
#P comment 883 11 68 196617 colorsound 7;
#P window linecount 2;
#P comment 1180 20 100 196617 When balls create connections;
#B color 1;
#P comment 695 554 100 196617 Its this out I am having trouble with;
#P comment 657 393 100 196617 Bangs the note A0 when counter hits 10;
#P window linecount 4;
#P comment 540 445 100 196617 These are sending out notes to played on a synth which works perfectly;
#P comment 686 591 100 196617 Could be something in the translation of Midi between max and Live?;
#P hidden connect 44 0 45 0;
#P hidden connect 45 0 42 0;
#P hidden connect 42 0 43 0;
#P connect 49 0 56 0;
#P connect 56 0 57 0;
#P connect 48 0 56 1;
#P hidden connect 27 0 25 0;
#P hidden connect 12 0 25 0;
#P hidden connect 25 0 13 0;
#P hidden connect 26 0 27 0;
#P connect 50 0 56 2;
#P hidden connect 26 0 25 1;
#P hidden connect 19 0 20 0;
#P hidden connect 21 0 20 0;
#P hidden fasten 18 0 21 0 215 156 145 156;
#P hidden fasten 17 0 21 0 176 396 145 396;
#P hidden fasten 19 0 21 0 139 396 145 396;
#P hidden connect 22 0 28 0;
#P hidden connect 29 0 28 0;
#P connect 43 0 11 0;
#P connect 13 0 11 0;
#P connect 57 0 11 0;
#P hidden connect 17 0 20 1;
#P hidden connect 30 0 29 0;
#P hidden connect 18 0 20 2;
#P connect 47 0 49 0;
#P hidden connect 30 0 28 1;
#P hidden connect 28 0 23 0;
#P hidden connect 21 0 24 0;
#P hidden connect 19 0 24 1;
#P connect 46 0 47 0;
#P connect 46 1 47 0;
#P hidden connect 17 0 24 2;
#P hidden connect 24 0 10 0;
#P connect 47 1 48 0;
#P hidden connect 18 0 24 3;
#P hidden connect 14 0 15 0;
#P connect 47 2 50 0;
#P hidden connect 20 0 16 0;
#P connect 47 5 51 0;
#P hidden connect 38 0 39 0;
#P connect 63 0 67 0;
#P connect 67 0 71 0;
#P connect 71 0 75 0;
#P connect 75 0 77 0;
#P connect 77 0 79 0;
#P connect 77 1 79 1;
#P connect 81 0 77 1;
#P hidden fasten 58 0 63 0 589 227 582 227;
#P connect 88 0 77 2;
#P connect 78 0 90 0;
#P connect 78 1 90 1;
#P connect 64 0 68 0;
#P connect 68 0 72 0;
#P connect 72 0 82 0;
#P connect 82 0 83 0;
#P hidden fasten 58 1 64 0 656 227 650 227;
#P connect 82 2 84 0;
#P connect 84 0 93 0;
#P connect 93 0 92 0;
#P connect 92 0 91 0;
#P connect 65 0 69 0;
#P connect 69 0 73 0;
#P connect 73 0 85 0;
#P connect 85 0 86 0;
#P connect 92 1 91 1;
#P connect 94 0 92 1;
#P hidden fasten 58 2 65 0 723 227 717 227;
#P connect 84 0 94 0;
#P connect 95 0 92 2;
#P connect 85 2 87 0;
#P connect 84 0 95 0;
#P hidden fasten 58 3 66 0 790 227 785 227;
#P connect 66 0 70 0;
#P connect 70 0 74 0;
#P connect 74 0 76 0;
#P connect 76 0 78 0;
#P connect 81 0 78 1;
#P connect 88 0 78 2;
#P pop;
Haven't tested it though. But you didn't define what port you send the "problematic" makenote.

Posted: Fri Mar 14, 2008 4:54 pm
by phulu
is the port number important?

Basically this patch is opened followed by Live.
I place a dummy clip triggering envelopes onto a midi track set to recieve midi in on midi yoke 2.
I then turn on midi mapping and select the clip, I go to MAX and bang out the A0 which is sent on in a noteout object on midiyoke 1.

I also have MidiOx open to make sure that midiyoke1 and midiyoke 2 are patched together.

I get the feeling its something to do with how midi is configured on my computer. Have uninstalled and re installed midiox and midiyoke so will let you know of any progress!

Posted: Fri Mar 14, 2008 5:10 pm
by Lo-Fi Massahkah
phulu wrote:is the port number important?
I guess you don't have to set it if you only have one port for in and one for out in Max's prefs.
phulu wrote:I also have MidiOx open to make sure that midiyoke1 and midiyoke 2 are patched together.
Could this create feedback?

Posted: Sat Mar 15, 2008 1:17 pm
by phulu
Going back to basics - I have now made a simple patch playing a single note when I bang it.

The noteout is set to out to Midi Yoke 1.

In Live I have a midi channel set to in from Midi Yoke 1.
It plays the FM8 accordingly, but when I try to assign this note to trigger a clip like I would with a midi keyboard Live does not recognise this note and the computer simply crashes.

Not asking for help but would like to know if anyone has had this working?
(Using Max to trigger clips in Live without a midi keyboard).

Thanks for your time
Phil