[PD] mod~ ???

Roman Haefeli reduzierer at yahoo.de
Mon May 7 19:27:23 CEST 2007


hi derek

i attached a patch, that should do what you want. it is a modified
version of IOhannes approach, but it is still only a [wrap~] with
scaling functionality.

roman


On Mon, 2007-05-07 at 19:00 +0200, Derek Holzer wrote:
> I tried this already, and it's not appropriate in this case. The idea is 
> to change the start of the loop to any place in the sample. If the 
> length of the loop is longer than what's left of the sample in the 
> table, currently I get silence. If I use [wrap~] the way you describe 
> it, the loop I select always starts at the beginning of the table, 
> because [wrap~] returns the percentage of the table I have "overshot".
> 
> I need a solution where, if the table is 100 places long, I can loop 
> from 95 back around to 25 if need be. Which is what my theoretical 
> [mod~] would do. But I simply can't "wrap" my head around how to 
> construct it. Your [wrap~] solution seems to return a loop starting at 0 
> which is 30 units long instead.
> 
> best,
> d.
> 
> IOhannes m zmoelnig wrote:
> > Derek Holzer wrote:
> >> end of the table)? [wrap~] doesn't do the trick, BTW.
> > 
> > i am sure it does.
> > try scaling the signal before sending it to [wrap~] and afterwards undo
> > the scaling.
> > 
> > 
> > [/~ 100]
> > |
> > [wrap~]
> > |
> > [*~ 100]
> > 
> > mfa.sdr
> > IOhannes
> > 
> 
-------------- next part --------------
#N canvas 684 414 423 469 10;
#X obj 35 173 /~;
#X obj 36 223 *~;
#X obj 36 200 wrap~;
#X floatatom 115 79 5 0 0 0 - - -;
#X floatatom 235 77 5 0 0 0 - - -;
#X obj 36 139 -~;
#X obj 115 106 f;
#X obj 115 162 -;
#X obj 115 137 t b f;
#X obj 36 245 +~;
#X obj 35 39 sig~;
#X floatatom 35 16 5 0 0 0 - - -;
#X obj 44 329 loadbang;
#X obj 44 350 metro 100;
#X obj 37 376 snapshot~;
#X floatatom 37 400 5 0 0 0 - - -;
#X text 114 54 start point;
#X text 234 57 end point;
#X connect 0 0 2 0;
#X connect 1 0 9 0;
#X connect 2 0 1 0;
#X connect 3 0 6 0;
#X connect 4 0 7 0;
#X connect 5 0 0 0;
#X connect 6 0 8 0;
#X connect 6 0 5 1;
#X connect 6 0 9 1;
#X connect 7 0 0 1;
#X connect 7 0 1 1;
#X connect 8 0 7 0;
#X connect 8 1 7 1;
#X connect 9 0 14 0;
#X connect 10 0 5 0;
#X connect 11 0 10 0;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 14 0 15 0;


More information about the Pd-list mailing list