Se leghi waveform ad un buffer e poi lo sposti con peek, ne introduci solamente un offset senza implementare questa cosa del "riporto", o sbaglio?
Ti riporto qui sotto quello che avevo in mente; come temevo č comunque una procedura piuttosto lenta.
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 329 299 56 196617 r waveset;
#P message 329 323 65 196617 set arrivo 1;
#P user waveform~ 329 346 200 74 3 9;
#W mode select;
#W mouseoutput continuous;
#W unit ms;
#W grid 1000.;
#W ticks 0;
#W labels 1;
#W vlabels 0;
#W vticks 1;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P newex 453 62 27 196617 t b i;
#P number 453 39 35 9 0 511 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 444 171 27 196617 +;
#P newex 529 129 27 196617 t i i;
#P newex 529 108 27 196617 - 1;
#P newex 495 86 44 196617 uzi 512;
#P newex 444 192 40 196617 % 512;
#P newex 444 250 68 196617 peek~ arrivo;
#P newex 546 196 78 196617 peek~ partenza;
#P newex 317 155 76 196617 buffer~ arrivo;
#P newex 41 299 56 196617 r waveset;
#P newex 34 121 56 196617 s waveset;
#P message 41 323 75 196617 set partenza 1;
#P user waveform~ 41 346 200 74 3 9;
#W mode select;
#W mouseoutput continuous;
#W unit ms;
#W grid 1000.;
#W ticks 0;
#W labels 1;
#W vlabels 0;
#W vticks 1;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P newex 172 179 69 196617 * 3.141593;
#P newex 172 204 23 196617 cos;
#P newex 96 74 51 196617 t b b 512;
#P newex 138 231 78 196617 peek~ partenza;
#P newex 172 154 40 196617 / 256.;
#P newex 138 154 27 196617 - 1;
#P newex 116 124 44 196617 uzi 512;
#P newex 95 54 48 196617 loadbang;
#P message 219 133 43 196617 size \$1;
#P newex 163 106 66 196617 sampstoms~;
#P newex 219 154 86 196617 buffer~ partenza;
#P comment 496 40 43 196617 offset;
#P connect 9 0 14 0;
#P connect 15 0 13 0;
#P connect 13 0 12 0;
#P connect 4 0 9 0;
#P connect 9 1 5 0;
#P connect 5 2 6 0;
#P connect 6 0 8 0;
#P connect 9 2 2 0;
#P connect 5 2 7 0;
#P connect 7 0 11 0;
#P connect 11 0 10 0;
#P connect 10 0 8 1;
#P connect 2 1 3 0;
#P connect 3 0 1 0;
#P fasten 3 0 16 0 224 151 322 151;
#P connect 28 0 27 0;
#P connect 27 0 26 0;
#P connect 22 0 23 0;
#P connect 23 0 19 0;
#P connect 19 0 18 0;
#P connect 24 0 25 0;
#P connect 25 1 23 1;
#P connect 17 0 18 1;
#P connect 25 0 20 0;
#P connect 20 2 21 0;
#P connect 21 0 22 0;
#P connect 22 1 17 0;
#P window clipboard copycount 29;