Forums > MaxMSP

knob midi learn

April 18, 2008 | 8:07 pm

Im trying to create a bpatcher based knob, that I can shift click on and it will basically link it to the last midi knob I tweaked, but I cant find a way to be able to shift click on just the knob. At this point if you shift click anywhere it will work, and I want to have many knobs so that will not work. Does anyone know of a way to do this?

#P hidden outlet 13 70 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden message 88 48 29 196617 open;
#P hidden newex 89 71 51 196617 pcontrol;
#B color 5;
#N vpatcher 218 356 627 663;
#P inlet 90 43 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 196 185 77 196617 ctlin;
#P newex 195 161 62 196617 prepend set;
#P outlet 199 235 15 0;
#P window setfont "Sans Serif" 12.;
#P number 197 209 35 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 195 131 35 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 162 131 35 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 117 69 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 195 100 27 196617 int;
#P newex 162 101 27 196617 int;
#P number 212 71 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 179 71 30 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 146 43 77 196617 ctlin;
#P newex 49 72 44 196617 receive;
#P inlet 117 44 15 0;
#P connect 0 0 7 0;
#P connect 7 0 5 0;
#P connect 5 0 8 0;
#P connect 2 1 3 0;
#P connect 3 0 5 1;
#P connect 7 0 6 0;
#P connect 6 0 9 0;
#P connect 9 0 12 0;
#P connect 12 0 13 0;
#P connect 13 0 10 0;
#P connect 10 0 11 0;
#P connect 2 2 4 0;
#P connect 4 0 6 1;
#P pop;
#P hidden newobj 90 95 68 196617 p controllers;
#N vpatcher 20 74 220 418;
#P outlet 27 295 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 27 268 46 196617 TogEdge;
#P toggle 27 247 15 0;
#P toggle 40 197 15 0;
#P newex 27 220 27 196617 &&;
#P outlet 76 294 15 0;
#P newex 76 267 46 196617 TogEdge;
#P message 87 51 14 196617 1;
#P newex 87 90 62 196617 metro 200;
#P toggle 87 72 15 0;
#P newex 87 30 50 196617 loadbang;
#P toggle 76 246 15 0;
#P button 87 143 15 0;
#P toggle 89 196 15 0;
#P newex 87 165 66 196617 modifiers;
#P newex 76 219 27 196617 &&;
#P newex 87 114 66 196617 mousestate;
#P fasten 0 0 12 0 92 136 32 136;
#P connect 12 0 14 0;
#P connect 14 0 15 0;
#P connect 15 0 16 0;
#P fasten 2 3 13 0 134 189 45 189;
#P connect 13 0 12 1;
#P fasten 0 0 1 0 92 137 81 137;
#P connect 1 0 5 0;
#P connect 5 0 10 0;
#P connect 10 0 11 0;
#P connect 6 0 9 0;
#P connect 9 0 7 0;
#P connect 7 0 8 0;
#P connect 8 0 0 0;
#P connect 0 0 4 0;
#P connect 4 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 1 1;
#P pop;
#P hidden newobj 89 24 72 196617 p controll link;
#P user dial 12 23 41 41 128 1 0 0 236 270 3 0.539062 206 206 206 221 221 221 107 131 223 225 225 225 124 124 124 0 0 0;
#P hidden user ubutton 148 47 47 32 0 0;
#P hidden connect 2 1 3 1;
#P hidden connect 4 0 3 0;
#P hidden fasten 5 0 4 0 93 69 94 69;
#P hidden connect 0 1 5 0;
#P hidden connect 1 0 6 0;
#P hidden connect 3 0 1 0;
#P window clipboard copycount 7;


April 18, 2008 | 9:16 pm

On Apr 18, 2008, at 1:07 PM, Nicholas C. Raftis III wrote:
> Im trying to create a bpatcher based knob, that I can shift click on
> and it will basically link it to the last midi knob I tweaked, but I
> cant find a way to be able to shift click on just the knob. At this
> point if you shift click anywhere it will work, and I want to have
> many knobs so that will not work. Does anyone know of a way to do
> this?

You have to wiggle the knob for this to detect the shift state. Not
too elegant, but may work for you:
#P button 230 194 15 0;
#P toggle 230 237 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 230 214 66 196617 modifiers;
#P user dial 216 145 40 40 128 1 0 0 159 270 1 1. 170 170 170 221 221
221 120 120 120 225 225 225 0 0 0 0 0 0;
#P connect 0 0 3 0;
#P connect 3 0 1 0;
#P connect 1 0 2 0;
#P window clipboard copycount 4;

Chris Muir
cbm@well.com

http://www.xfade.com


April 19, 2008 | 3:06 pm

thanks Chris, Ill try that out. also, hows your buchla?? any new noodles your planning to put up?


April 19, 2008 | 4:15 pm

On Apr 19, 2008, at 8:06 AM, Nicholas C. Raftis III wrote:
> thanks Chris, Ill try that out. also, hows your buchla?? any new
> noodles your planning to put up?

I’ve been a little busy to do much with the Buchla lately :-( More
noodling soonish, though.

-C

Chris Muir
cbm@well.com

http://www.xfade.com


April 22, 2008 | 4:46 am

Nicholas C. Raftis III schrieb:
> Im trying to create a bpatcher based knob, that I can shift click on
> and it will basically link it to the last midi knob I tweaked, but I
> cant find a way to be able to shift click on just the knob. At this
> point if you shift click anywhere it will work, and I want to have
> many knobs so that will not work. Does anyone know of a way to do
> this?

I’d use javascript to get the position of the object and
mousstate/modifiers to find out which knob is shift clicked…


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


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