XML Feeds

.

[maxmsp] 360° loop numbox

Stefan Tiedje Stefan-Tiedje at addcom.de
Fri Nov 30 02:25:29 MST 2007


Derrick Giscloux schrieb:
> Hi, I'm searching for a way to loop numbox response to mouse click &
> drag. Here's a possibility but the numbox hedge in when it reach the
> max (360°). Any idea ?

#P window setfont "Sans Serif" 9.;
#P window linecount 4;
#P comment 244 149 101 196617 my mod abhaXion as subpatcher \, to deal 
with negative numbers...;
#P window linecount 1;
#N vpatcher 20 74 620 474;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 50 134 56 196617 % 360.;
#P newex 50 104 56 196617 + 360.;
#P newex 50 76 56 196617 % 360.;
#P inlet 50 56 15 0;
#P outlet 50 156 15 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 0 0;
#P pop;
#P newobj 176 147 61 196617 p mod 360.;
#P flonum 176 122 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 2;
#P message 176 171 33 196617 set \$1;
#P window linecount 1;
#P comment 220 123 100 196617 do not limit the box!;
#P connect 2 0 3 0;
#P connect 3 0 1 0;
#P fasten 1 0 2 0 57 166 98 93 136 93 136 98;
#P window clipboard copycount 5;


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




More information about the maxmsp mailing list