chris@164: #N canvas 503 319 861 473 10; chris@164: #N canvas 0 22 450 278 (subpatch) 0; chris@164: #X array exampleTable 65238 float 2; chris@164: #X coords 0 1 65238 -1 200 140 1 0 0; chris@164: #X restore 21 213 graph; chris@164: #X obj 243 329 adc~ 1 2 3; chris@164: #X obj 300 426 dac~; chris@164: #X text 317 264 <<< delete this object before compiling!; chris@164: #X obj 300 392 tabread4~ exampleTable; chris@164: #X msg 243 218 read -resize rt.wav exampleTable; chris@164: #X obj 300 350 lop~ 1; chris@164: #X obj 300 371 *~ 65238; chris@164: #X obj 243 266 soundfiler; chris@164: #X text 489 229 right-click array -> properties -> toggle "save contents" chris@164: ; chris@164: #X text 463 216 <<< after loading a file:; chris@164: #X text 17 23 Load sample into table and scrub using analog input; chris@164: #X text 17 33 ===================================================; chris@164: #X text 362 351 <<< avoid zipper noise; chris@164: #X text 362 371 <<< length of sample; chris@164: #X text 317 328 <<< analog input 0 (range 0-1); chris@164: #X text 631 419 ---------------------------------; chris@164: #X text 631 409 @krighxz / BELA / heavy / 12/2015; chris@164: #X text 655 428 beaglert.cc / enzienaudio.com; chris@164: #X text 30 61 N.B. the patch cannot be bigger than 512kb in size \; chris@164: only use this for *very small soundfiles*; chris@164: #X text 29 99 You can modify the render.cpp file to load samples into chris@164: tables using the Heavy API: https://enzienaudio.com/docs/c.html#api-hv-table chris@164: ; chris@164: #X connect 1 2 6 0; chris@164: #X connect 4 0 2 0; chris@164: #X connect 4 0 2 1; chris@164: #X connect 5 0 8 0; chris@164: #X connect 6 0 7 0; chris@164: #X connect 7 0 4 0;