max v2; #N vpatcher 423 95 909 551; #N comlet go to freq2 amp2 in 5000 ms; #P inlet 103 91 15 0; #N comlet go to freq1 amp1 in 5000 ms; #P inlet 56 91 15 0; #P button 104 157 15 0; #P button 57 163 15 0; #P window setfont "Sans Serif" 9.; #P message 137 302 55 196617 $4 20000; #P message 82 302 55 196617 $3 20000; #P message 110 203 55 196617 $2 20000; #P message 55 203 55 196617 $1 20000; #N comlet audio out!; #P outlet 56 400 15 0; #P newex 81 326 45 196617 line~ $3; #P newex 54 235 45 196617 line~ $1; #P window setfont "Sans Serif" 12.; #P newex 55 352 27 196620 *~; #P newex 54 265 48 196620 cycle~; #P window setfont "Sans Serif" 9.; #P comment 256 86 173 196617 sub-patch for an oscillator which switches between two amp / freq values; #P comment 257 35 196 196617 arguments: freq1 freq2 amp1 amp2; #P connect 7 0 4 0; #P fasten 8 0 4 0 115 228 59 228; #P connect 4 0 2 0; #P connect 11 0 7 0; #P connect 2 0 3 0; #P connect 3 0 6 0; #P connect 13 0 11 0; #P connect 5 0 3 1; #P connect 9 0 5 0; #P fasten 10 0 5 0 142 324 86 324; #P fasten 11 0 9 0 62 186 172 186 172 263 128 263 128 293 87 293; #P connect 14 0 12 0; #P connect 12 0 8 0; #P fasten 12 0 10 0 109 176 188 176 188 281 142 281; #P pop;