max v2; #N vpatcher 55 49 643 573; #P user ezdac~ 26 417 70 450 0; #P window setfont "Sans Serif" 14.; #P newex 40 327 99 196622 phasor~ 440; #P newex 40 364 153 196622 wave~ hoho 0 5.805; #P message 365 231 72 196622 1 0.2 0.1; #P newex 365 278 85 196622 gen10 256; #P newex 215 328 93 196622 peek~ hoho; #P newex 212 284 83 196622 pack 0 0.; #N counter 0 0 255; #X flags 0 0; #P newobj 79 241 123 196622 counter 0 0 255; #P newex 163 192 33 196622 iter; #P newex 11 35 145 196622 buffer~ hoho 5.805; #P user multiSlider 163 37 259 141 -1. 1. 256 2681 15 0 0 2 0; #M frgb 0 0 0; #M brgb 255 255 255; #M rgb2 127 127 127; #M rgb3 0 0 0; #M rgb4 37 52 91; #M rgb5 74 105 182; #M rgb6 112 158 18; #M rgb7 149 211 110; #M rgb8 187 9 201; #M rgb9 224 62 37; #M rgb10 7 114 128; #P comment 78 396 217 196622 wave~ can play a buffer~ as a waveform -- the frequency is controlled by the frequency of the phasor~ object; #P comment 367 308 146 196622 good old gen10 can write the buffer; #P window setfont "Sans Serif" 9.; #P comment 234 183 100 196617 all this nonsense here is to get the data from the multislider into location/sample-value pairs; #P connect 11 0 13 0; #P connect 12 0 11 0; #P connect 11 0 13 1; #P connect 5 0 6 0; #P connect 3 0 5 0; #P connect 6 0 7 0; #P connect 9 0 8 0; #P connect 7 0 8 0; #P connect 5 0 7 1; #P connect 10 0 9 0; #P pop;