[PD] smooth random numbers

Ingo ingo at miamiwave.com
Sun Feb 23 08:00:01 CET 2014


This one can be retriggered to change speed anytime.

Ingo

#N canvas 988 0 345 419 10;
#X obj 71 135 random 128;
#X obj 71 108 metro 5000;
#X obj 71 90 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1 ; #X obj
71 189 line; #X obj 71 209 i; #X obj 71 162 pack f 5000; #X msg 254 32 5000;
#X obj 161 384 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X floatatom 161 365 5 0 0 0 - - -;
#X obj 71 231 vsl 15 128 0 127 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 4400 1;
#X floatatom 71 365 5 0 0 0 - - -;
#X text 197 363 target;
#X text 287 20 time;
#X obj 14 73 loadbang;
#X msg 253 10 1000;
#X obj 181 69 t b f b;
#X msg 134 19 0;
#X msg 134 39 1;
#X connect 0 0 5 0;
#X connect 0 0 8 0;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 3 0 4 0;
#X connect 4 0 9 0;
#X connect 5 0 3 0;
#X connect 6 0 15 0;
#X connect 8 0 7 0;
#X connect 9 0 10 0;
#X connect 13 0 2 0;
#X connect 14 0 15 0;
#X connect 15 0 17 0;
#X connect 15 1 1 1;
#X connect 15 1 5 1;
#X connect 15 2 16 0;
#X connect 16 0 2 0;
#X connect 17 0 2 0;




> -----Ursprüngliche Nachricht-----
> Von: pd-list-bounces at iem.at [mailto:pd-list-bounces at iem.at] Im Auftrag 
> von Ingo
> Gesendet: Sonntag, 23. Februar 2014 04:21
> An: 'Roman Haefeli'; pd-list at iem.at
> Betreff: Re: [PD] smooth random numbers
> 
> Starting from Roman's patch I would probably do it like the attached 
> patch.
> 
> Ingo
> 
> 
> #N canvas 988 0 286 367 10;
> #X obj 71 76 random 128;
> #X obj 71 49 metro 5000;
> #X obj 71 31 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1 ; 
> #X obj 71 130 line; #X obj 71 150 i; #X obj 71 103 pack f 5000; #X msg 
> 184 32 5000; #X obj 161 325 bng 15 250 50 0 empty empty empty 17 7 0 
> 10 -262144
> -1 -1;
> #X floatatom 161 306 5 0 0 0 - - -;
> #X obj 71 172 vsl 15 128 0 127 0 0 empty empty empty 0 -9 0 10 -262144
> -1 -1 900 1;
> #X floatatom 71 306 5 0 0 0 - - -;
> #X text 197 304 target;
> #X text 217 20 time;
> #X obj 14 14 loadbang;
> #X msg 183 10 1000;
> #X connect 0 0 5 0;
> #X connect 0 0 8 0;
> #X connect 1 0 0 0;
> #X connect 2 0 1 0;
> #X connect 3 0 4 0;
> #X connect 4 0 9 0;
> #X connect 5 0 3 0;
> #X connect 6 0 1 1;
> #X connect 6 0 5 1;
> #X connect 8 0 7 0;
> #X connect 9 0 10 0;
> #X connect 13 0 2 0;
> #X connect 14 0 1 1;
> #X connect 14 0 5 1;
> 
> 
> 
> > -----Ursprüngliche Nachricht-----
> > Von: pd-list-bounces at iem.at [mailto:pd-list-bounces at iem.at] Im Auftrag
> von
> > Roman Haefeli
> > Gesendet: Samstag, 22. Februar 2014 23:27
> > An: pd-list at iem.at
> > Betreff: Re: [PD] smooth random numbers
> >
> > On Sam, 2014-02-22 at 21:54 +0000, Pagano, Patrick wrote:
> >
> > >
> > > I would like to start creating random midi values from 0-127 and pick
> > > each number say every 5 second and have each random number then flow
> > > to the next smoothly. so if say the first number is 60 and the second
> > > is 85, the data stream would flow from 60, 61, 62 63.....until it
> > > reached 85 and then from 85 smoothly to the next random selection.
> >
> > See attached patch.
> >
> > > I have not had the luck i was hoping with Vline, someone suggested an
> > > array but i am hoping someone might share some math or abstraction so
> > > i can get a handle on how to implement it
> >
> > Though one could do it with [vline~ ], it is probably cheaper (cpu-wise)
> > and actually simpler with [line]. The trick is to adjust the time grain
> > to make it output only integer numbers.
> >
> > Roman
> >

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: random_midi_fader3.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20140223/78aa5000/attachment.asc>


More information about the Pd-list mailing list