Forums > MaxMSP

groove/waveform sample start/end mod

July 27, 2006 | 12:14 am

There are a couple of things I’m stuck on right now and getting through them will be a breakthrough, I’m sure.

The patch below is a groove/buffer/waveform combination with a pair of drunks modulating the sample start and end times. It’s patched so that I can select any region of the waveform and the drunks will continue to modulate only with respect to that region rather than jumping to the beginning or end, etc.

However, using a slightly modified version of the ‘MIDI LFO’ from another thread I started, which includes lp.scampi (from Litter Pro), I’m trying to modulate the start and end times independently (with two of these ‘LFOs’ — only one is shown), but while setting the region as above and restricting the LFO to modulation only with respect to the selected region.

Does that make sense? I hope the patch is clearer. I sort of understand how to use ‘set’ but it doesn’t seem applicable, here, does it?

Thanks!

#N vpatcher 0 0 1098 777;
#P origin 49 3;
#P window setfont "Sans Serif" 9.;
#P flonum 663 357 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P hidden message 609 485 14 9109513 2;
#P number 661 508 35 9 0 2 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 661 531 42 9109513 sym $1;
#P user umenu 608 507 47 9109543 1 64 523 1;
#X add lin;
#X add exp;
#X add pow;
#P flonum 700 508 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P user multiSlider 648 627 196 92 0. 1024. 1 3177 15 0 0 2 0 0 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 user uslider 627 624 15 85 1024 1 0 0;
#P hidden message 969 341 14 9109513 1;
#P hidden message 1028 341 28 9109513 1024;
#P hidden message 1010 341 14 9109513 0;
#P hidden message 989 341 14 9109513 1;
#P hidden newex 989 314 45 9109513 loadbang;
#P hidden newex 584 536 35 9109513 r sLim;
#P number 842 561 35 9 0 1024 2 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 734 560 102 9109513 New range maximum:;
#P number 842 533 35 9 0 1024 2 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 734 535 102 9109513 New range minimum:;
#P window linecount 2;
#P hidden comment 672 587 250 9109513 The default output range is 0 < = x < 128. This can be changed with messages to the fourth and fifth inlets.;
#P number 627 587 35 9 0 0 160 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 627 562 96 9109513 lp.scampi map -1 1;
#P flonum 627 357 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 732 399 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 732 417 50 9109513 offset $1;
#P message 959 369 26 9109513 100;
#P message 934 369 20 9109513 20;
#P number 934 390 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 627 384 36 9109513 cycle~;
#P newex 627 442 317 9109513 snapshot~;
#B color 5;
#P comment 635 416 45 9109513 signal in;
#P comment 943 426 132 9109513 interval (for self-clocking);
#P window linecount 6;
#P comment 708 318 113 9109513 change offset within vector of sample output. range is from 0 (least recent , default) to the signal vector size – 1 (most recent);
#P window linecount 1;
#P comment 700 491 41 9109513 curve;
#P button 127 202 15 0;
#P user gain~ 74 352 24 100 158 0 1.071519 7.94321 10.;
#P user ezdac~ 64 488 108 521 0;
#P window setfont "Sans Serif" 10.;
#P flonum 142 270 35 10 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 106 270 35 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 106 287 40 9109514 lores~;
#P flonum 238 237 35 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 201 237 35 10 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 304 374 35 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 311 458 35 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 483 534 63 9109514 seed 77777;
#P comment 252 513 117 9109514 bang for a random step;
#P toggle 294 458 15 0;
#P newex 294 480 56 9109514 metro 100;
#P number 461 511 36 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 371 513 15 0;
#P newex 395 533 87 9109514 drunk 7777777 2;
#B color 5;
#P message 474 449 63 9109514 seed 77777;
#P comment 244 429 117 9109514 bang for a random step;
#P toggle 286 374 15 0;
#P newex 286 396 56 9109514 metro 100;
#P number 452 426 36 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 363 429 15 0;
#P newex 386 448 87 9109514 drunk 7777777 2;
#B color 5;
#P flonum 201 255 35 10 -2. 2. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden user gswitch2 153 299 39 32 1 0;
#P flonum 238 272 35 10 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 143 242 35 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 201 272 35 10 -1. 0. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 273 249 36 9109514 *~ 0.5;
#P hidden newex 308 245 36 9109514 *~ 0.1;
#P newex 209 199 55 9109514 rect~ 0.35;
#P user number~ 143 202 182 218 10 139 3 2 0. 0. 0 2. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 315 267 58 9109514 clip~ -1. 1.;
#P hidden newex 305 29 53 9109514 loadbang;
#P hidden message 281 22 14 9109514 1;
#P comment 41 150 53 9109514 • variable;
#P flonum 5 151 35 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 836 60 50 9109514 select all;
#P message 833 74 47 9109514 0 -1 0 -1;
#P hidden message 710 23 36 9109514 set $1;
#P hidden message 586 23 36 9109514 set $1;
#P hidden message 503 27 36 9109514 set $1;
#N vpatcher 40 55 278 404;
#P window setfont "Sans Serif" 9.;
#P newex 96 202 27 9109513 int;
#N coll ;
#T flags 1 0;
#T 0 mode select;
#T 1 mode loop;
#T 2 mode move;
#T 3 mode draw;
#P newobj 131 255 53 9109513 coll;
#P button 75 117 15 0;
#N comlet waveform~ mode messages;
#P inlet 74 164 15 0;
#P newex 113 88 27 9109513 < < 1;
#P newex 96 140 40 9109513 change;
#P newex 96 164 45 9109513 select 0;
#P newex 96 117 27 9109513 |;
#P outlet 131 284 15 0;
#P newex 45 62 78 9109513 modifiers 100;
#P connect 5 0 7 0;
#P connect 0 3 2 0;
#P connect 7 0 2 0;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 9 0;
#P connect 6 0 9 0;
#P connect 0 4 5 0;
#P connect 5 0 2 1;
#P connect 9 0 8 0;
#P connect 3 1 8 0;
#P connect 8 0 1 0;
#P pop;
#P hidden newobj 337 192 46 9109514 p wfkeys;
#P user pictslider 370 111 19 76 0 0 0 0 wfknob.pct 1 wfmodes.pct 1 2146 0 0 196608 1. 1.;
#P comment 742 62 72 9109514 select end ms;
#P comment 620 62 73 9109514 select start ms;
#P comment 498 62 90 9109514 display length ms;
#P flonum 751 76 49 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 631 76 49 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 511 76 49 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 391 76 49 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 751 194 49 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 631 194 49 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 511 194 49 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 391 194 49 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 101 125 78 9109514 name sample1;
#P user waveform~ 391 94 490 93 139 10;
#W mode loop;
#W mouseoutput continuous;
#W clipdraw 1;
#W unit ms;
#W grid 0.000006;
#W ticks 8;
#W labels -16;
#W vlabels 0;
#W vticks 0;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 4 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P comment 378 62 79 9109514 display start ms;
#P hidden toggle 215 49 15 0;
#P hidden message 212 67 71 9109514 loopinterp $1;
#P message 12 208 23 9109514 0.5;
#P message 6 186 17 9109514 -1;
#P hidden toggle 141 39 15 0;
#P hidden message 98 40 44 9109514 loop $1;
#P toggle 5 168 15 0;
#P hidden newex 3 236 27 9109514 sig~;
#P newex 74 90 98 9109514 groove~ sample1 2;
#B color 5;
#P hidden comment 140 19 66 9109514 • loop on/off;
#P comment 23 169 161 9109514 • play normal speed forward/stop;
#P comment 27 187 58 9109514 • backward;
#P comment 38 209 35 9109514 • slow;
#P hidden comment 214 19 186 9109514 turn interpolation at loop points on/off;
#P message 5 104 38 9109514 import;
#P toggle 329 135 15 0;
#P message 267 133 62 9109514 clipdraw $1;
#P button 329 151 15 0;
#P hidden newex 264 150 29 9109514 float;
#P flonum 294 151 35 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden message 264 191 70 9109514 normalize $1;
#P flonum 328 116 35 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 273 115 53 9109514 voffset $1;
#P message 301 80 32 9109514 undo;
#P flonum 328 99 35 10 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 273 98 54 9109514 vzoom $1;
#P message 301 167 28 9109514 crop;
#P newex 47 28 31 9109514 adc~;
#P toggle 6 29 15 0;
#P newex 6 50 86 9109514 record~ sample1;
#P message 5 86 43 9109514 replace;
#P newex 5 124 93 9109514 buffer~ sample1 2;
#P comment 236 254 59 9109514 mod range;
#P comment 201 290 91 9109514 upper lower limits;
#P comment 240 220 28 9109514 duty;
#P comment 199 219 26 9109514 freq;
#P comment 86 241 57 9109514 noise amp;
#P comment 104 257 43 9109514 cutoff q;
#P window linecount 2;
#P comment 107 202 20 9109514 on/off;
#P window linecount 1;
#P newex 143 220 39 9109514 noise~;
#P window setfont "Sans Serif" 9.;
#P hidden newex 712 506 170 9109513 if $i1 == 0 then set 0. else set 1.;
#P background;
#P hidden connect 38 0 33 0;
#P hidden connect 37 0 33 0;
#P hidden connect 34 0 33 0;
#P hidden connect 62 0 33 0;
#P hidden connect 10 0 9 0;
#P connect 26 0 9 0;
#P hidden connect 64 0 62 0;
#P hidden connect 74 0 62 0;
#P connect 12 0 11 0;
#P hidden fasten 13 0 11 0 52 148 11 148;
#P connect 98 0 97 0;
#P hidden connect 35 0 32 0;
#P hidden connect 33 0 32 0;
#P hidden connect 39 0 32 0;
#P hidden connect 32 0 98 0;
#P hidden connect 36 0 35 0;
#P connect 98 0 97 1;
#P hidden connect 1 0 94 0;
#P hidden connect 46 0 32 1;
#P hidden connect 95 0 94 1;
#P hidden connect 96 0 94 2;
#P hidden connect 65 0 36 0;
#P hidden connect 66 0 67 0;
#P hidden connect 99 0 74 0;
#P hidden connect 47 0 32 2;
#P hidden connect 67 1 74 1;
#P hidden connect 92 0 68 0;
#P hidden connect 40 0 39 0;
#P hidden connect 65 0 40 0;
#P hidden connect 93 0 68 1;
#P hidden connect 64 0 22 0;
#P hidden connect 23 0 22 0;
#P hidden connect 22 0 20 0;
#P hidden connect 25 0 24 0;
#P hidden connect 16 0 15 0;
#P hidden connect 19 0 18 0;
#P hidden connect 68 0 70 0;
#P hidden connect 65 0 64 0;
#P hidden connect 21 0 22 1;
#P connect 80 0 79 0;
#P hidden connect 64 0 21 0;
#P connect 87 0 86 0;
#P hidden connect 75 0 70 1;
#P hidden connect 94 0 69 0;
#P hidden connect 69 0 66 0;
#P hidden connect 70 0 66 0;
#P hidden connect 64 0 16 0;
#P connect 91 0 79 1;
#P hidden connect 72 0 69 1;
#P hidden connect 55 1 56 0;
#P hidden connect 71 1 66 1;
#P connect 90 0 86 1;
#P hidden connect 73 0 66 2;
#P hidden connect 79 0 77 0;
#P hidden connect 86 0 84 0;
#P hidden connect 58 0 76 0;
#P hidden connect 82 0 76 0;
#P hidden connect 77 0 76 0;
#P hidden connect 20 0 42 0;
#P hidden connect 43 0 42 0;
#P connect 48 0 42 0;
#P hidden connect 56 0 42 0;
#P hidden connect 15 0 42 0;
#P hidden connect 18 0 42 0;
#P hidden connect 17 0 42 0;
#P hidden connect 24 0 42 0;
#P hidden connect 14 0 42 0;
#P hidden connect 42 0 44 0;
#P hidden connect 59 0 83 0;
#P hidden connect 89 0 83 0;
#P hidden connect 84 0 83 0;
#P connect 78 0 76 2;
#P connect 85 0 83 2;
#P hidden connect 42 1 57 0;
#P hidden connect 57 0 49 0;
#P connect 49 0 42 1;
#P hidden connect 42 1 45 0;
#P hidden connect 46 0 58 0;
#P hidden connect 131 0 128 0;
#P hidden connect 120 0 131 0;
#P hidden connect 121 0 111 0;
#P connect 111 0 105 0;
#P connect 109 0 104 0;
#P connect 105 0 104 0;
#P hidden fasten 104 0 112 0 632 557 632 557;
#P hidden fasten 119 0 112 0 589 555 632 555;
#P fasten 129 0 112 0 666 556 632 556;
#P connect 112 0 113 0;
#P fasten 113 0 125 0 632 611 632 611;
#P hidden connect 58 0 50 0;
#P hidden connect 126 0 50 0;
#P hidden connect 76 0 50 0;
#P connect 50 0 42 2;
#P hidden connect 42 2 46 0;
#P hidden connect 125 0 126 0;
#P connect 132 0 105 1;
#P hidden connect 122 0 130 0;
#P connect 130 0 129 0;
#P fasten 116 0 112 3 847 558 683 558;
#P fasten 118 0 112 4 847 581 727 581 727 560 700 560;
#P hidden connect 122 0 127 0;
#P hidden connect 0 0 127 0;
#P hidden connect 47 0 59 0;
#P hidden connect 128 0 0 0;
#P hidden connect 127 0 112 5;
#P hidden connect 124 0 110 0;
#P connect 110 0 109 0;
#P hidden connect 59 0 51 0;
#P hidden connect 83 0 51 0;
#P connect 51 0 42 3;
#P hidden connect 42 3 47 0;
#P hidden connect 122 0 116 0;
#P hidden connect 123 0 118 0;
#P hidden connect 60 0 42 4;
#P hidden connect 121 0 106 0;
#P connect 108 0 106 0;
#P connect 107 0 106 0;
#P connect 106 0 104 1;
#P hidden connect 120 0 124 0;
#P hidden connect 120 0 121 0;
#P hidden connect 120 0 122 0;
#P hidden fasten 120 0 123 0 994 338 1033 338;


July 28, 2006 | 1:11 pm

You don’t have to leave the drunks in there as they’re for demonstration only. I simply want one modulator on the start time and one on the end time, with the ability to change the position and maintain the modulation depth/range. It would also be nice to be able to increase/decrease the depth of modulation.
I’m still trying but I’m definitely stuck.


August 1, 2006 | 4:59 pm

I think I nailed it with the lp.delta object. But, if anyone knows of another, easier, or different way to do this, I’d greatly appreciate some advice.

If you have xsample~ and Litter Pro, please take a look, here:

#N vpatcher 0 0 1280 936;
#P origin 41 28;
#P toggle 869 613 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 869 637 40 9109513 switch;
#P toggle 1204 603 15 0;
#P newex 1204 627 40 9109513 switch;
#P hidden message 1066 184 14 9109513 4;
#P comment 1345 698 104 9109513 absolute difference;
#P comment 1269 698 67 9109513 right – left;
#P comment 1204 698 67 9109513 left – right;
#P number 1352 676 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 1278 676 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 1204 676 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 1204 653 158 9109513 lp.delta;
#P flonum 1221 552 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 1204 575 27 9109513 /;
#P newex 1204 528 88 9109513 lp.scampi map -1 1;
#P user multiSlider 1204 426 196 92 0. 127. 1 3177 15 0 0 2 0 0 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 hidden message 1421 175 16 9109513 -1;
#P hidden message 1503 175 14 9109513 3;
#P hidden message 1476 175 23 9109513 128;
#P hidden message 1458 175 14 9109513 0;
#P hidden message 1441 175 14 9109513 1;
#P hidden newex 1441 148 45 9109513 loadbang;
#P number 1439 374 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 1332 376 102 9109513 New range maximum:;
#P number 1439 347 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 1331 349 102 9109513 New range minimum:;
#P window linecount 3;
#P comment 1331 307 186 9109513 The default output range is 0 x 128. This can be changed with messages to the fourth and fifth inlets.;
#P user umenu 1267 308 60 9109543 1 64 324 1;
#X add clip;
#X add wrap;
#X add reflect;
#X add stet;
#P number 1204 401 35 9 0 0 160 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 1204 375 88 9109513 lp.scampi map -1 1;
#P flonum 1204 194 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 1284 228 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 1284 246 50 9109513 offset $1;
#P message 1411 203 26 9109513 100;
#P message 1386 203 20 9109513 20;
#P number 1386 224 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 1204 221 36 9109513 cycle~;
#P newex 1204 279 317 9109513 snapshot~;
#B color 5;
#P comment 1212 253 45 9109513 signal in;
#P comment 1395 260 132 9109513 interval (for self-clocking);
#P window linecount 6;
#P comment 1260 147 113 9109513 change offset within vector of sample output. range is from 0 (least recent , default) to the signal vector size – 1 (most recent);
#P window linecount 1;
#P comment 1010 714 104 9109513 absolute difference;
#P comment 934 714 67 9109513 right – left;
#P comment 869 714 67 9109513 left – right;
#P number 1017 692 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 943 692 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 869 692 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 869 669 158 9109513 lp.delta;
#P flonum 885 562 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 868 584 27 9109513 /;
#P newex 868 537 94 9109513 lp.scampi map -1. 1.;
#P user multiSlider 868 435 196 92 0. 127. 1 3177 15 0 0 2 0 0 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 hidden message 1085 184 16 9109513 -1;
#P hidden message 1167 184 14 9109513 3;
#P hidden message 1140 184 23 9109513 128;
#P hidden message 1122 184 14 9109513 0;
#P hidden message 1105 184 14 9109513 1;
#P hidden newex 1105 157 45 9109513 loadbang;
#P number 1103 383 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 996 385 102 9109513 New range maximum:;
#P number 1103 356 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 995 358 102 9109513 New range minimum:;
#P window linecount 3;
#P comment 995 316 186 9109513 The default output range is 0 x 128. This can be changed with messages to the fourth and fifth inlets.;
#P user umenu 931 317 60 9109543 1 64 333 1;
#X add clip;
#X add wrap;
#X add reflect;
#X add stet;
#P number 868 410 35 9 0 0 160 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 868 384 88 9109513 lp.scampi map -1 1;
#P flonum 868 203 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 948 237 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 948 255 50 9109513 offset $1;
#P message 1075 212 26 9109513 100;
#P message 1050 212 20 9109513 20;
#P number 1050 233 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 868 230 36 9109513 cycle~;
#P newex 868 288 317 9109513 snapshot~;
#B color 5;
#P comment 876 262 45 9109513 signal in;
#P comment 1059 269 132 9109513 interval (for self-clocking);
#P window linecount 6;
#P comment 924 156 113 9109513 change offset within vector of sample output. range is from 0 (least recent , default) to the signal vector size – 1 (most recent);
#P window linecount 1;
#P hidden message 564 63 14 9109513 2;
#P user meter~ 148 544 161 602 100 0 168 0 104 104 104 255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3;
#P user gain~ 112 544 37 36 158 0 1.071519 7.94321 10.;
#P user pictslider 11 81 19 76 0 0 0 0 wfknob.pct 1 wfmodes.pct 1 2146 0 0 196608 1. 1.;
#P comment 472 30 47 9109513 select all;
#P message 469 44 51 9109513 0 -1 0 -1;
#N vpatcher 40 55 278 404;
#P window setfont "Sans Serif" 9.;
#P newex 96 202 27 9109513 int;
#N coll ;
#T flags 1 0;
#T 0 mode select;
#T 1 mode loop;
#T 2 mode move;
#T 3 mode draw;
#P newobj 131 255 53 9109513 coll;
#P button 75 117 15 0;
#N comlet waveform~ mode messages;
#P inlet 74 164 15 0;
#P newex 113 88 27 9109513 < < 1;
#P newex 96 140 40 9109513 change;
#P newex 96 164 45 9109513 select 0;
#P newex 96 117 27 9109513 |;
#P outlet 131 284 15 0;
#P newex 45 62 78 9109513 modifiers 100;
#P connect 5 0 7 0;
#P connect 0 3 2 0;
#P connect 7 0 2 0;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 9 0;
#P connect 6 0 9 0;
#P connect 0 4 5 0;
#P connect 5 0 2 1;
#P connect 9 0 8 0;
#P connect 3 1 8 0;
#P connect 8 0 1 0;
#P pop;
#P hidden newobj -4 26 50 9109513 p wfkeys;
#P hidden message 318 178 35 9109513 set $1;
#P hidden message 222 178 35 9109513 set $1;
#P hidden message 126 178 35 9109513 set $1;
#P hidden message 30 178 35 9109513 set $1;
#P comment 625 117 242 9109513 clips sample values to window display in draw mode;
#P toggle 608 116 15 0;
#P message 546 116 62 9109513 clipdraw $1;
#P button 608 131 15 0;
#P hidden newex 544 131 29 9109513 float;
#P comment 625 132 174 9109513 normalize buffer~ (destructive edit);
#P flonum 573 131 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden message 544 156 65 9109513 normalize $1;
#P hidden newex 548 39 45 9109513 loadbang;
#P hidden message 548 63 14 9109513 1;
#P comment 625 102 237 9109513 set vertical offset (amplitude at middle of display);
#P flonum 588 101 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 533 101 55 9109513 voffset $1;
#P comment 625 87 273 9109513 set vertical zoom (amplitude from middle to top of display);
#P comment 625 72 92 9109513 undo last selection;
#P comment 625 147 247 9109513 crop buffer~ to current selection (destructive edit);
#P message 595 71 28 9109513 undo;
#P flonum 588 86 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 533 86 55 9109513 vzoom $1;
#P message 595 146 28 9109513 crop;
#P comment 381 47 68 9109513 select end ms;
#P comment 259 47 75 9109513 select start ms;
#P comment 137 47 83 9109513 display length ms;
#P flonum 390 61 49 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 270 61 49 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 150 61 49 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 30 61 49 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P user waveform~ 30 79 490 93 139 9;
#W mode move;
#W mouseoutput continuous;
#W unit ms;
#W grid 1000.;
#W ticks 8;
#W labels 1;
#W vlabels 1;
#W vticks 1;
#W bpm 120. 4.;
#W frgb 16 0 0;
#W brgb 94 166 169;
#W rgb2 63 112 185;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 169 165 207;
#W rgb6 108 108 108;
#W rgb7 78 74 220;
#P comment 17 47 83 9109513 display start ms;
#P message 458 389 55 9109513 posmod $1;
#P flonum 458 372 39 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 12.;
#P comment 566 390 154 9109516 attributes;
#P comment 561 213 154 9109516 crossfading loop zone;
#P window setfont "Sans Serif" 10.;
#P comment 645 352 87 9109514 crossfade shape;
#P window setfont "Sans Serif" 9.;
#P newex 563 351 78 9109513 prepend xshape;
#P user umenu 563 332 100 9109543 1 64 348 1;
#X add linear;
#X add quarter sine;
#X add half sine;
#P window setfont "Sans Serif" 10.;
#P comment 638 303 92 9109514 crossfading mode;
#P window setfont "Sans Serif" 9.;
#P newex 563 302 72 9109513 prepend xfade;
#P user umenu 563 283 100 9109543 1 64 299 1;
#X add keep loop;
#X add keep loop length;
#X add keep fade length;
#X add inside loop;
#P message 565 412 59 9109513 getmethods;
#P window setfont "Sans Serif" 10.;
#P comment 637 412 100 9109514 list all methods;
#P window setfont "Sans Serif" 9.;
#P comment 671 253 80 9109513 (0 means OFF);
#P message 674 511 45 9109513 getscale;
#P window linecount 2;
#P comment 689 461 88 9109513 getter messages for all attributes;
#P window linecount 1;
#P message 667 530 54 9109513 getxshape;
#P message 616 530 48 9109513 getxfade;
#P message 565 530 49 9109513 getxzone;
#P hidden newex 517 537 20 9109513 t s;
#P message 565 454 51 9109513 getbuffer;
#P message 650 473 38 9109513 getpos;
#P message 612 511 59 9109513 getsclmode;
#P message 565 511 45 9109513 getunits;
#P message 608 492 50 9109513 getinterp;
#P message 565 492 41 9109513 getloop;
#P message 606 473 42 9109513 getmax;
#P message 565 473 39 9109513 getmin;
#P window linecount 2;
#P message 562 577 38 9109513 sclmode 0;
#P button 356 589 23 0;
#P window linecount 1;
#P newex 562 557 61 9109513 prepend set;
#P message 565 430 68 9109513 getattributes;
#P comment 617 254 54 9109513 (in units);
#P flonum 563 236 49 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 563 254 49 9109513 xzone $1;
#P window linecount 4;
#P comment 130 437 157 9109513 Arguments: first argument (int) specifies nr of channels ; second argument sets the initial buffer name;
#P window linecount 1;
#P comment 51 321 78 9109513 current position;
#P comment 49 364 70 9109513 reset position;
#P message 11 362 32 9109513 pos 0;
#P window linecount 2;
#P comment 337 430 181 9109513 minimum and maximum playing points in units (= loop points in loop mode);
#P window linecount 1;
#P comment 51 311 83 9109513 start playback at;
#P comment 59 278 131 9109513 select entire buffer length;
#P comment 257 358 54 9109513 loop mode;
#P comment 329 341 188 9109513 2 .. linear interpolation (saves cpu load);
#P comment 329 329 159 9109513 1 .. 4-point interpolation (default);
#P comment 329 317 95 9109513 0 .. no interpolation;
#P comment 329 303 95 9109513 interpolation type:;
#P hidden message 209 347 14 9109513 1;
#P hidden newex 210 327 45 9109513 loadbang;
#P message 18 258 39 9109513 set buf;
#P comment 59 239 175 9109513 print current settings in max window;
#P window linecount 2;
#P comment 217 541 148 9109513 min and max playing points corrected to sample accuracy.;
#P window linecount 1;
#P comment 4 486 80 9109513 • load a sample;
#P message 74 573 27 9109513 stop;
#P message 4 573 65 9109513 startwindow;
#P hidden newex 112 651 70 9109513 dac~;
#P comment 4 557 69 9109513 • start audio;
#P user umenu 257 372 89 9109543 1 32 388 1;
#X add one-shot;
#X add forward;
#X add bidirectional;
#P user umenu 257 301 61 9109543 1 32 317 1;
#X add none;
#X add 4-point;
#X add linear;
#P message 257 320 50 9109513 interp $1;
#P message 18 277 19 9109513 all;
#P comment 59 258 76 9109513 set buffername;
#P message 18 238 30 9109513 print;
#P message 358 389 38 9109513 pos $1;
#P message 4 504 41 9109513 replace;
#P flonum 167 327 40 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 11 335 35 9109513 stop;
#P message 257 390 41 9109513 loop $1;
#P window linecount 2;
#P comment 180 577 107 9109513 current position (based on scale mode);
#P window linecount 1;
#P comment 363 269 152 9109513 scale mode for position outlet;
#P message 11 311 39 9109513 start;
#B color 14;
#P newex 257 277 82 9109513 prepend sclmode;
#P user umenu 257 259 100 9109543 1 64 275 1;
#X add units;
#X add units in loop;
#X add buffer (0.-1.);
#X add loop (0.-1.);
#P flonum 358 372 39 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 257 234 68 9109513 prepend units;
#P user umenu 257 216 100 9109543 1 64 232 1;
#X add samples;
#X add buffer size;
#X add ms;
#X add s;
#P user number~ 172 602 262 617 9 139 3 2 0. 0. 0 298. 100 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 295 526 69 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 218 526 76 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 420 467 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 340 467 75 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 167 345 39 9109513 sig~ 1.;
#P message 18 219 26 9109513 help;
#P newex 4 523 84 9109513 buffer~ buf 10000;
#P comment 362 218 178 9109513 units for min/max and position points;
#P window linecount 2;
#P comment 398 374 59 9109513 set position (in units);
#P window linecount 1;
#P comment 164 311 84 9109513 playback speed;
#P comment 59 219 113 9109513 get help in max window;
#N picture;
#K replace 68;
#K set 0 8257981 31916501 36896785 50269184 -1 31916032 29163520 36896768 30736384 0 1966081 655805 31916501 36896812 589827 105342318 1702256896 196611 851977 3014660 0 2621895 32115758 773874799 1702043758 1869881344 2820105 242378099 1702109296 1869834612 1768910336 16722920 226590592 -8448 -1484521000 0 118833744 -1830970192 32768 61865984 1154 0 50364416 1 0 0 134250496 0 12845056 13107200 32768 0 0 1920863815 151027712 14680064 27275 0 65550992 -2147483412 15990784 16252928 16515072 16777216 7461060 0 0 -2147483380;
#P vpicture 46 333 124 359;
#P comment 616 237 109 9109513 length of xfade zone;
#P comment 637 430 100 9109513 list all attributes;
#P window linecount 2;
#P comment 382 588 66 9109513 bang on loop or play end;
#P window linecount 1;
#P comment 628 563 100 9109513 attributes;
#P comment 337 455 169 9109513 see also: min/max attributes;
#P comment 362 231 148 9109513 (Max/MSP defaults to ms);
#P user panel 555 209 226 169;
#X brgb 216 206 197;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 557 383 225 229;
#X brgb 217 229 230;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P comment 499 374 39 9109513 modulo;
#P newex 112 495 319 9109513 xgroove~ buf;
#B color 14;
#P user panel 1 551 108 43;
#X brgb 255 255 255;
#X frgb 100 202 30;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 10 211 232 94;
#X brgb 217 229 230;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 8 306 234 80;
#X brgb 187 209 187;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 248 210 296 200;
#X brgb 216 206 197;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P hidden connect 138 1 135 0;
#P connect 38 0 19 0;
#P hidden connect 131 0 104 0;
#P hidden connect 53 0 103 0;
#P connect 104 0 103 0;
#P hidden connect 135 0 103 0;
#P hidden connect 118 0 103 0;
#P hidden connect 112 0 103 0;
#P hidden connect 114 0 103 0;
#P hidden connect 111 0 103 0;
#P hidden connect 123 0 103 0;
#P hidden connect 128 0 103 0;
#P hidden connect 103 0 131 0;
#P hidden connect 53 0 4 0;
#P fasten 21 0 4 0 172 418 117 418;
#P hidden fasten 68 0 4 0 568 274 548 274 548 419 117 419;
#P hidden connect 64 0 4 0;
#P hidden connect 40 0 4 0;
#P hidden connect 36 0 4 0;
#P hidden connect 35 0 4 0;
#P hidden connect 32 0 4 0;
#P hidden connect 31 0 4 0;
#P hidden connect 20 0 4 0;
#P hidden connect 28 0 4 0;
#P hidden connect 39 0 4 0;
#P hidden connect 42 0 4 0;
#P hidden connect 43 0 4 0;
#P hidden fasten 83 0 4 0 522 627 102 627 102 489 117 489;
#P hidden fasten 93 0 4 0 568 324 548 324 548 419 117 419;
#P hidden fasten 96 0 4 0 568 374 548 374 548 419 117 419;
#P hidden connect 101 0 4 0;
#P connect 4 0 139 0;
#P hidden connect 139 0 47 0;
#P hidden connect 48 0 47 0;
#P hidden connect 49 0 47 0;
#P hidden connect 103 1 132 0;
#P hidden connect 139 0 140 0;
#P hidden connect 132 0 105 0;
#P connect 105 0 103 1;
#P hidden connect 55 0 37 0;
#P connect 37 0 21 0;
#P hidden connect 4 1 26 0;
#P hidden fasten 139 0 47 1 117 640 177 640;
#P hidden connect 54 0 55 0;
#P fasten 4 2 24 0 239 519 223 519;
#P hidden connect 103 2 133 0;
#P hidden connect 163 0 27 0;
#P connect 27 0 28 0;
#P connect 30 0 31 0;
#P hidden connect 121 0 44 0;
#P connect 44 0 43 0;
#P hidden connect 121 0 45 0;
#P connect 45 0 35 0;
#P hidden connect 103 2 4 1;
#P fasten 22 0 4 1 345 488 271 488;
#P hidden connect 133 0 106 0;
#P connect 217 0 106 0;
#P connect 106 0 103 2;
#P fasten 4 3 25 0 300 520 300 520;
#P hidden connect 103 3 134 0;
#P hidden fasten 4 4 73 0 361 570 361 570;
#P connect 29 0 39 0;
#P hidden connect 134 0 107 0;
#P connect 215 0 107 0;
#P connect 107 0 103 3;
#P fasten 23 0 4 2 425 488 425 488;
#P hidden connect 103 3 4 2;
#P connect 100 0 101 0;
#P fasten 136 0 103 4 474 61 515 61;
#P hidden connect 88 0 83 0;
#P hidden connect 71 0 83 0;
#P hidden connect 82 0 83 0;
#P hidden connect 75 0 83 0;
#P hidden connect 77 0 83 0;
#P hidden connect 79 0 83 0;
#P hidden connect 80 0 83 0;
#P hidden connect 78 0 83 0;
#P hidden connect 76 0 83 0;
#P hidden connect 81 0 83 0;
#P hidden connect 84 0 83 0;
#P hidden connect 85 0 83 0;
#P hidden connect 86 0 83 0;
#P hidden connect 91 0 83 0;
#P hidden connect 113 0 112 0;
#P hidden connect 119 0 118 0;
#P hidden connect 127 0 126 0;
#P hidden connect 126 0 123 0;
#P hidden connect 129 0 128 0;
#P hidden connect 122 0 121 0;
#P hidden fasten 4 5 72 0 422 557 567 557;
#P connect 72 0 74 0;
#P hidden connect 124 0 126 1;
#P connect 69 0 68 0;
#P connect 92 0 93 0;
#P connect 95 0 96 0;
#P hidden connect 122 0 141 0;
#P hidden connect 121 0 124 0;
#P hidden connect 121 0 113 0;
#P hidden connect 162 0 152 0;
#P connect 152 0 146 0;
#P connect 146 0 145 0;
#P connect 150 0 145 0;
#P connect 145 0 153 0;
#P fasten 155 1 153 0 986 358 873 358;
#P connect 153 0 154 0;
#P connect 154 0 167 0;
#P hidden connect 145 0 168 0;
#P connect 168 0 169 0;
#P hidden connect 161 0 218 0;
#P connect 218 0 217 0;
#P connect 133 0 171 0;
#P connect 171 0 172 0;
#P connect 171 2 217 1;
#P hidden connect 214 0 170 0;
#P connect 170 0 169 1;
#P hidden connect 158 0 153 3;
#P hidden connect 160 0 153 4;
#P hidden connect 165 0 155 0;
#P connect 171 1 173 0;
#P hidden connect 166 0 151 0;
#P connect 151 0 150 0;
#P connect 169 0 171 1;
#P connect 171 2 174 0;
#P hidden connect 162 0 147 0;
#P connect 148 0 147 0;
#P connect 149 0 147 0;
#P hidden connect 161 0 214 0;
#P hidden connect 161 0 166 0;
#P hidden connect 163 0 158 0;
#P hidden connect 164 0 160 0;
#P hidden connect 161 0 162 0;
#P hidden connect 161 0 163 0;
#P hidden fasten 161 0 164 0 1110 184 1145 184;
#P hidden connect 161 0 165 0;
#P fasten 147 0 145 1 1055 268 1180 268;
#P hidden connect 198 0 188 0;
#P connect 188 0 182 0;
#P connect 186 0 181 0;
#P connect 182 0 181 0;
#P connect 181 0 189 0;
#P fasten 191 1 189 0 1322 349 1209 349;
#P connect 189 0 190 0;
#P connect 190 0 203 0;
#P hidden connect 181 0 204 0;
#P connect 204 0 205 0;
#P hidden connect 161 0 216 0;
#P connect 216 0 215 0;
#P connect 134 0 207 0;
#P connect 207 0 208 0;
#P connect 207 2 215 1;
#P hidden connect 214 0 206 0;
#P connect 206 0 205 1;
#P hidden connect 194 0 189 3;
#P hidden connect 196 0 189 4;
#P hidden connect 201 0 191 0;
#P connect 207 1 209 0;
#P hidden connect 202 0 187 0;
#P connect 187 0 186 0;
#P connect 205 0 207 1;
#P connect 207 2 210 0;
#P connect 185 0 183 0;
#P connect 184 0 183 0;
#P hidden connect 198 0 183 0;
#P hidden connect 197 0 202 0;
#P hidden connect 199 0 194 0;
#P hidden connect 200 0 196 0;
#P hidden connect 197 0 198 0;
#P hidden connect 197 0 199 0;
#P hidden fasten 197 0 200 0 1446 175 1481 175;
#P hidden connect 197 0 201 0;
#P fasten 183 0 181 1 1391 259 1516 259;


Viewing 3 posts - 1 through 3 (of 3 total)