[maxmsp] Re: Re: Re: aka.iphone to control ableton
mzed
mzed at cnmat.berkeley.edu
Tue Mar 11 13:06:19 MDT 2008
- Previous message: [maxmsp] Re: Re: Re: aka.iphone to control ableton
- Next message: [maxmsp] Re: sequencer lenght without counter?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Quote: joe_perkins_1982 at hotmail.com wrote on Sat, 08 March 2008 03:12 ---------------------------------------------------- > This is great, works perfectly. Thanks!!! > > A few questions... > > Can someone please explain whats going on in the patch above? > The akaRemote app is sending in Open Sound Control messages on port 5600 (or another one if the user selects). These come in the format /event and then a big list about the event. You can get the exact format by looking at the patcher "p message2pvar" in aka.iphone2.1. Essentially, I'm routing data from the first slider on the first page, rescaling it to appropriate MIDI values, and then sending that as a continuous control MIDI message. I've commented up the patch a bit: #P window setfont "Sans Serif" 9.; #P window linecount 1; #P comment 147 477 172 196617 This outputs MIDI control messages.; #P window linecount 2; #P comment 182 279 299 196617 This remaps the slider range from 0.-1. to 0-127 \, which is the appropriate range for MIDI; #P window linecount 1; #P comment 127 253 299 196617 Behold! The slider value; #P comment 138 228 299 196617 This the third item of the remaining list \, with is the slider value; #P comment 142 210 273 196617 This routes events for the first slider \, which is item # 10; #P comment 103 162 273 196617 This strips off the device ID and passes the rest of the list; #P comment 121 140 238 196617 This strips the work "/event" from the message; #P comment 139 112 238 196617 This is the data input; #P newex 91 278 87 196617 scale 0. 1. 0 127; #P newex 113 315 60 196617 loadmess 3; #P number 135 378 35 9 1 16 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 170 379 100 196617 Channel; #P number 113 339 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 91 475 54 196617 ctlout 3 1; #P user uslider 91 311 18 128 128 1 0 0; #P flonum 91 252 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 91 228 44 196617 zl nth 3; #P newex 91 207 49 196617 route 10; #P newex 91 184 43 196617 route 0; #P newex 50 161 51 196617 zl slice 1; #P newex 50 138 68 196617 route /event; #P newex 50 111 86 196617 udpreceive 5600; #P comment 148 340 100 196617 Controller number; #P comment 139 183 238 196617 This routes events for the first page of akaRemote; #P connect 2 0 3 0; #P connect 3 0 4 0; #P connect 4 1 5 0; #P connect 5 0 6 0; #P connect 6 0 7 0; #P connect 7 0 8 0; #P connect 9 0 10 0; #P connect 11 0 10 1; #P connect 13 0 10 2; #P connect 14 0 11 0; #P connect 8 0 15 0; #P connect 15 0 9 0; #P window clipboard copycount 24; mz -- || michael f. zbyszynski -- molecular gastronimist || http://www.cnmat.berkeley.edu/ || http://www.mikezed.com/
- Previous message: [maxmsp] Re: Re: Re: aka.iphone to control ableton
- Next message: [maxmsp] Re: sequencer lenght without counter?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
