max v2; generate an envelope using line; #N vpatcher 114 112 874 445; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P message 295 85 118 196617 0 \, 1. 400 1. 800 0. 400; #P flonum 203 89 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 203 166 101 196617 *~; #P newex 294 132 31 196617 line~; #P message 113 125 32 196617 start; #P message 80 125 27 196617 stop; #P newex 203 135 60 196617 cycle~ 440; #P newex 203 205 30 196617 dac~; #P comment 201 68 58 196617 Frequency; #P comment 293 66 100 196617 Amplitude; #P comment 147 268 100 196617 Adjustable oscillator; #P connect 9 0 4 0; #P connect 4 0 8 0; #P connect 8 0 3 0; #P fasten 5 0 3 0 85 204 120 204 208 204; #P fasten 6 0 3 0 118 204 208 204; #P connect 8 0 3 1; #P connect 10 0 7 0; #P connect 7 0 8 1; #P pop;