[PD] random, but always start with X

Andrew Faraday jbturgid at hotmail.com
Mon Jun 14 00:49:19 CEST 2010

Am I missing something here... If you use a random box to represent your sound files, and seed the random, doesn't that mean the next result will be the seed (if it is within the range). Only trouble is this would probably wind up with the same path each time. 
To make that different each time, I'd start a counter, [f]x[+ 1] with a [sel 1] below it, put a message [0 ( into the float to reset. The left outlet of [sel] to your first file, the right to a random box etc.

> Date: Sun, 13 Jun 2010 20:06:11 +0100
> From: claudiusmaximus at goto10.org
> To: pd-list at iem.at
> Subject: Re: [PD] random, but always start with X
> On 13/06/10 19:53, Ben Carney wrote:
> > Im trying to set up a simple system where, each time a metro is triggered
> >     on, 5 sound files are played, but they always start with sound file 1.
> >     It has been a while since i have used pd regularly and it seems I
> > once knew
> >     the answer to this.
> >     can any one shed any light?
> >     best,
> If you have 5 random numbers, but 1 of them isn't random at all, that 
> leaves you 4 random numbers to compute (eg with [random]) :)
> If you need randoms without duplication, that's more tricky, something 
> like [urn] or [urne] should do the trick (search the pd-list archives).
> Claude
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100613/503280c6/attachment.htm>

More information about the Pd-list mailing list