max v2; #N vpatcher 10 59 947 624; #P origin 0 -67; #P window setfont Times 18.; #P window linecount 2; #P comment 238 240 255 1310738 'number~' shows the signal value every 250 ms by default; #P window linecount 1; #P comment 415 134 386 1310738 line~ can also do multiple destination-transition pairs; #P window setfont "Fixedwidth Serif" 18.; #P window linecount 2; #P message 418 156 451 1441810 400 750 100 250 800 333 400 333 1600 333 200 125 200 375 300 125 300 175 200 125; #P window setfont Times 18.; #P window linecount 1; #P comment 191 212 220 1310738 initial setting for line~'s value; #P window setfont "Fixedwidth Serif" 18.; #P user number~ 96 248 238 269 18 22 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0; #P window setfont Times 18.; #P window linecount 3; #P comment 492 21 309 1310738 because 'line~' provides a new value for every single audio sample \, the frequency changes as gradually as possible; #P window linecount 2; #P comment 160 285 428 1310738 (note that your computer's speakers might not produce 100Hz very loudly \, but the other tones should be audible); #P window linecount 1; #P comment 37 106 464 1310738 (for example \, go to 1600 in 7500 milliseconds); #P comment 37 86 464 1310738 the messages say to line~ ; #P window linecount 3; #P comment 124 21 319 1310738 this patch demonstrates linear interpolation from one value to another using 'line~' for sample-accurate interpolation; #P window linecount 1; #P comment 633 255 170 1310738 initialize fader position; #P comment 239 145 151 1310738 go down to 100 Hz; #P window setfont "Fixedwidth Serif" 18.; #P newex 589 226 98 1441810 loadbang; #P user gain~ 81 331 24 100 158 0 1.071519 7.94321 10.; #P message 589 254 43 1441810 100; #P newex 81 297 76 1441810 cycle~; #P message 242 167 98 1441810 100 7500; #P message 81 167 109 1441810 1600 7500; #P user ezdac~ 64 470 108 503 0; #P newex 81 210 109 1441810 line~ 100; #P window setfont Times 18.; #P comment 81 145 137 1310738 go up to 1600 Hz; #P fasten 7 0 2 0 86 461 69 461; #P fasten 18 0 1 0 423 205 86 205; #P connect 3 0 1 0; #P fasten 4 0 1 0 247 200 86 200; #P connect 1 0 5 0; #P fasten 6 0 7 0 594 326 86 326; #P connect 5 0 7 0; #P fasten 1 0 16 0 86 240 101 240; #P fasten 7 0 2 1 86 461 103 461; #P connect 8 0 6 0; #P pop;