max v2; #N vpatcher 164 76 829 634; #P message 374 478 145 196617 vasp bufmm1 bufmm2 bufmm3; #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 374 501 78 196617 p clear_buffers; #P comment 561 329 73 196617 positive values; #P newex 53 395 61 196617 vasp.update; #P hidden message 321 324 61 196617 set bufmm3; #P user waveform~ 321 343 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 newex 521 501 108 196617 buffer~ bufmm3 2000; #P comment 131 154 148 196617 generate a sine wave at 1Hz; #P message 53 154 68 196617 vasp bufmm1; #P newex 53 210 61 196617 vasp.update; #P newex 53 189 80 196617 vasp.osc 44100; #P comment 172 319 99 196617 copy to new buffer; #P hidden message 321 202 61 196617 set bufmm2; #P user waveform~ 321 220 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 newex 521 478 108 196617 buffer~ bufmm2 2000; #N vpatcher 40 55 418 371; #P button 183 82 15 0; #P newex 129 145 60 196617 prepend set; #N comlet waveform~ mode messages; #P inlet 129 121 15 0; #P newex 259 64 27 196617 << 1; #P newex 206 121 40 196617 change; #P newex 206 145 107 196617 select 0 1 2; #P newex 206 98 27 196617 |; #P newex 47 121 40 196617 change; #P outlet 129 252 15 0; #P message 47 145 65 196617 constrain \$1; #P newex 129 195 45 196617 loadbang; #P newex 47 40 222 196617 pushkeys; #P message 270 169 58 196617 mode move; #P message 206 213 61 196617 mode select; #P message 238 191 52 196617 mode loop; #P connect 3 0 7 0; #P connect 7 0 5 0; #P connect 12 0 13 0; #P fasten 2 0 6 0 275 243 134 243; #P fasten 1 0 6 0 211 243 134 243; #P fasten 0 0 6 0 243 243 134 243; #P fasten 5 0 6 0 52 243 134 243; #P connect 11 0 14 0; #P connect 14 0 8 0; #P connect 3 3 8 0; #P connect 8 0 10 0; #P connect 10 0 9 0; #P connect 13 0 1 0; #P connect 9 0 1 0; #P connect 4 0 1 0; #P connect 11 0 8 1; #P connect 9 1 0 0; #P connect 3 4 11 0; #P connect 9 2 2 0; #P pop; #P hidden newobj 321 35 49 196617 p wfkeys; #P hidden message 321 81 61 196617 set bufmm1; #P hidden newex 321 57 45 196617 loadbang; #P user waveform~ 321 101 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 newex 53 374 65 196617 vasp.minmax; #P message 53 318 105 196617 vasp bufmm2 bufmm3; #P newex 521 457 108 196617 buffer~ bufmm1 2000; #P newex 53 352 75 196617 vasp.= bufmm1; #P comment 44 71 242 196617 splits a vasp pairs into smaller and larger values; #P comment 44 48 102 196622 vasp.minmax; #P comment 598 86 44 196617 source; #P comment 559 206 75 196617 negative values; #P connect 18 0 16 0; #P connect 16 0 17 0; #P connect 6 0 4 0; #P connect 4 0 7 0; #P connect 7 0 23 0; #P hidden connect 9 0 10 0; #P hidden fasten 5 1 10 0 624 475 638 475 638 77 326 77; #P hidden connect 11 0 8 0; #P hidden connect 10 0 8 0; #P hidden connect 9 0 14 0; #P hidden connect 11 0 13 0; #P hidden connect 14 0 13 0; #P hidden connect 9 0 22 0; #P hidden connect 22 0 21 0; #P connect 26 0 25 0; #P hidden fasten 13 5 8 4 626 323 638 323 638 77 626 77; #P hidden connect 8 5 13 4; #P pop;