max v2; #N vpatcher 30 89 685 531; #P window setfont Times 18.; #P window linecount 4; #P comment 234 316 190 1310738 the 'set' message sets the value of an object without causing any output from that object; #P window setfont "Fixedwidth Serif" 18.; #P window linecount 1; #P message 206 226 75 1441810 set \$1; #P window setfont Times 18.; #P window linecount 3; #P comment 419 233 190 1310738 go back to 64 in 100 ms \, sending interpolated values every 10 ms; #P window linecount 2; #P comment 419 192 218 1310738 allow a number through only when the mouse is released; #P window linecount 5; #P comment 3 150 134 1310738 (It also uses the slider to display actual pitchbend messages coming from MIDI.); #P window setfont "Fixedwidth Serif" 18.; #P window linecount 1; #P newex 284 197 130 1441810 mousefilter; #P number 32 365 49 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P message 284 289 75 1441810 set \$1; #P newex 284 256 53 1441810 line; #P message 284 226 108 1441810 64 100 10; #P user uslider 206 45 18 128 128 1 0 0; #P newex 32 245 75 1441810 bendin; #P window setfont Times 18.; #P window linecount 5; #P comment 3 56 203 1310738 This shows how you could make a "spring-loaded" slider that springs back to 64 whenever you release the mouse button.; #P connect 4 0 6 0; #P connect 2 0 6 0; #P connect 1 0 6 0; #P fasten 5 0 2 0 289 315 417 315 417 40 211 40; #P connect 2 0 11 0; #P fasten 2 0 7 0 211 193 289 193; #P connect 7 0 3 0; #P fasten 11 0 4 0 211 252 289 252; #P connect 3 0 4 0; #P connect 4 0 5 0; #P fasten 1 0 5 0 37 285 289 285; #P pop;