Forums > MaxMSP

Logic 9 ctrl mapping

October 25, 2009 | 8:18 pm

For some reason I cant seem to get logic 9 to receive a control messages I send from Max. Im trying to assign via the learn mode in Logic. I can send midi notes to logic but not assign parameters.

Here is this simple patch Im trying to assign a ESM cutoff. Am I doing something wrong its been a while since I used MAX.

Thx

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 22 34 37 196617 value;
#P comment 87 34 37 196617 ctrl #;
#P hidden newex 220 56 63 196617 loadmess 1;
#P number 147 49 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 85 49 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 23 49 35 9 0 127 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 23 73 134 196617 pack 0 1 1;
#P newex 23 97 85 196617 ctlout;
#P comment 147 34 53 196617 channel #;
#P hidden connect 6 0 4 0;
#P hidden connect 6 0 5 0;
#P connect 5 0 2 2;
#P connect 4 0 2 1;
#P connect 2 0 1 0;
#P connect 3 0 2 0;
#P window clipboard copycount 9;


October 25, 2009 | 9:18 pm

you need to assign a port to [ctlout].
check outport.maxhelp in ctlout’s help.


October 26, 2009 | 7:47 am

Ok tried it but still nothing here is what I done.

– Pasted Max Patch, click to expand. –

It’s strange.


October 26, 2009 | 9:03 am

indeed strange. I’ve tested it with logic 9 and it’s working over here…
Have you checked logic’s input monitor in the "click & ports" layer in the environment ?


January 11, 2010 | 3:31 pm

I tried your patch but it needed a little fiddling, namely in the MIDI settings the Abbrevs had to be set. In Logic I had nothing to change. Your amnesia has been passed on to me, and I forget how to get the proper max5 patcher text, but this worked for me:

{
"patcher" : {
"fileversion" : 1,
"rect" : [ 36.0, 218.0, 640.0, 480.0 ],
"bglocked" : 0,
"defrect" : [ 36.0, 218.0, 640.0, 480.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "MIDI Test",
"patching_rect" : [ 26.0, 157.0, 51.0, 17.0 ],
"numinlets" : 1,
"id" : "obj-12",
"fontname" : "Arial",
"numoutlets" : 0,
"fontsize" : 9.0,
"presentation_rect" : [ 26.0, 157.0, 0.0, 0.0 ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "b",
"patching_rect" : [ 92.0, 129.0, 32.5, 18.0 ],
"numinlets" : 2,
"id" : "obj-11",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontsize" : 12.0,
"presentation_rect" : [ 285.0, 70.0, 0.0, 0.0 ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "144, 60, 60",
"patching_rect" : [ 25.0, 177.0, 69.0, 18.0 ],
"numinlets" : 2,
"id" : "obj-19",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontsize" : 11.595187
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "midiout",
"patching_rect" : [ 29.0, 219.0, 40.0, 17.0 ],
"numinlets" : 1,
"id" : "obj-10",
"fontname" : "Arial",
"numoutlets" : 0,
"fontsize" : 9.0
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "value",
"patching_rect" : [ 142.0, 150.0, 37.0, 17.0 ],
"numinlets" : 1,
"id" : "obj-1",
"fontname" : "Arial",
"numoutlets" : 0,
"fontsize" : 9.0
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "ctrl #",
"patching_rect" : [ 207.0, 150.0, 37.0, 17.0 ],
"numinlets" : 1,
"id" : "obj-2",
"fontname" : "Arial",
"numoutlets" : 0,
"fontsize" : 9.0
}

}
, {
"box" : {
"maxclass" : "number",
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"patching_rect" : [ 267.0, 165.0, 35.0, 17.0 ],
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"triscale" : 0.9,
"numinlets" : 1,
"id" : "obj-4",
"fontname" : "Arial",
"numoutlets" : 2,
"outlettype" : [ "int", "bang" ],
"fontsize" : 9.0
}

}
, {
"box" : {
"maxclass" : "number",
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"patching_rect" : [ 205.0, 165.0, 35.0, 17.0 ],
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"triscale" : 0.9,
"numinlets" : 1,
"id" : "obj-5",
"fontname" : "Arial",
"numoutlets" : 2,
"outlettype" : [ "int", "bang" ],
"fontsize" : 9.0
}

}
, {
"box" : {
"maxclass" : "number",
"htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ],
"patching_rect" : [ 143.0, 165.0, 35.0, 17.0 ],
"minimum" : 0,
"bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ],
"triscale" : 0.9,
"numinlets" : 1,
"id" : "obj-6",
"fontname" : "Arial",
"maximum" : 127,
"numoutlets" : 2,
"outlettype" : [ "int", "bang" ],
"fontsize" : 9.0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "pack 0 1 1",
"patching_rect" : [ 143.0, 189.0, 134.0, 17.0 ],
"numinlets" : 3,
"id" : "obj-7",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontsize" : 9.0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "ctlout",
"patching_rect" : [ 143.0, 213.0, 85.0, 17.0 ],
"numinlets" : 3,
"id" : "obj-8",
"fontname" : "Arial",
"numoutlets" : 0,
"fontsize" : 9.0
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "channel #",
"patching_rect" : [ 267.0, 150.0, 53.0, 17.0 ],
"numinlets" : 1,
"id" : "obj-9",
"fontname" : "Arial",
"numoutlets" : 0,
"fontsize" : 9.0
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-10", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-10", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-8", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-7", 2 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-7", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-8", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}

}


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