[PD] smooth random numbers

Roman Haefeli reduzent at gmail.com
Sat Feb 22 23:26:34 CET 2014


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 --------------
A non-text attachment was scrubbed...
Name: random_midi_fader.pd
Type: text/x-puredata
Size: 641 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20140222/5df44d32/attachment.bin>


More information about the Pd-list mailing list