max v2; #N vpatcher 158 141 801 655; #P message 441 425 60 196617 vasp bufopt; #N vpatcher 40 55 218 175; #P newex 45 79 61 196617 vasp.update; #P newex 45 56 45 196617 vasp.= 0; #N comlet vasp to clear in; #P inlet 45 26 15 0; #P connect 0 0 1 0; #P connect 1 0 2 0; #P pop; #P newobj 441 446 73 196617 p clear_buffer; #P user umenu 73 119 72 196647 1 64 135 1; #X add bass.aif; #X add beat.aif; #X add fly.aif; #X add plastic.aif; #X add your_own...; #N vpatcher 93 462 631 722; #P message 59 102 28 196617 read; #P newex 59 69 89 196617 route your_own...; #N comlet popup comment in; #P inlet 59 26 15 0; #P newex 59 149 48 196617 s 1160path; #P newex 138 102 79 196617 sprintf read %s; #P user umenu 48 169 100 196647 1 64 185 1; #X add drums.aif; #X add voice.aif; #X add test.aif; #X add read a soundfile; #P connect 3 0 4 0; #P connect 4 0 5 0; #P fasten 1 0 2 0 143 134 64 134; #P connect 5 0 2 0; #P connect 4 1 1 0; #P pop; #P hidden newobj 135 141 43 196617 p loader; #P comment 46 120 26 196617 read; #P hidden newex 519 425 48 196617 r 1160path; #P flonum 120 208 44 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 137 353 68 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 46 67 177 196617 otptimize a vasp (aka normalize); #P message 64 352 60 196617 vasp bufopt; #P newex 85 380 38 196617 vasp./; #P newex 85 403 61 196617 vasp.update; #P newex 85 188 45 196617 vasp.opt; #P message 85 160 60 196617 vasp bufopt; #P newex 85 319 62 196617 vasp.amax?; #P hidden message 302 131 53 196617 set bufopt; #P hidden newex 302 106 45 196617 loadbang; #P user waveform~ 302 156 312 99 3 9; #W mode select; #W mouseoutput continuous; #W unit ms; #W grid 1000.; #W ticks 8.; #W labels 1; #W vlabels 1; #W vticks 1; #W vzoom 1.; #W voffset 0.; #W bpm 120. 4.; #W frgb 0 0 0; #W brgb 255 255 255; #W rgb2 132 132 132; #W rgb3 0 0 0; #W rgb4 0 0 0; #W rgb5 255 255 255; #W rgb6 100 100 100; #W rgb7 100 100 100; #P message 240 446 27 196617 stop; #P message 173 446 65 196617 startwindow; #P newex 293 425 30 196617 line~; #P message 293 404 72 196617 0 \, 2000 2000; #P newex 293 472 29 196617 dac~; #P newex 293 446 64 196617 play~ bufopt; #P newex 85 228 61 196617 vasp.update; #P message 85 297 60 196617 vasp bufopt; #P newex 519 446 100 196617 buffer~ bufopt 2000; #P comment 210 355 141 196617 -> current absolute maximum; #P comment 83 279 210 196617 or use vasp.amax? to optimize buffer content; #P comment 46 44 95 196622 vasp.opt; #P comment 46 82 204 196617 right outlet: the original maximum value; #P connect 17 0 18 0; #P connect 18 0 6 0; #P connect 5 0 16 0; #P fasten 21 0 20 0 69 373 90 373; #P connect 20 0 19 0; #P fasten 23 0 20 1 142 374 118 374; #P connect 18 1 24 0; #P hidden connect 28 1 27 0; #P fasten 16 1 23 0 142 344 142 344; #P connect 9 0 10 0; #P connect 10 0 7 0; #P connect 7 0 8 0; #P fasten 11 0 8 0 178 466 298 466; #P fasten 12 0 8 0 245 466 298 466; #P hidden fasten 4 1 15 0 614 94 295 94 295 162 307 162; #P hidden connect 14 0 15 0; #P hidden connect 15 0 13 0; #P connect 7 0 8 1; #P connect 30 0 29 0; #P hidden connect 25 0 4 0; #P pop;