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,
how about counter/count, select and gate so that you can funnel the metro bangs to the proper file?
how do you mean "they always start with one"? as in, you need it to start on sound file #1?
On Sun, Jun 13, 2010 at 1:53 PM, Ben Carney bfcarney@gmail.com 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,
-- benfcarney www.benfcarney.com Chicago, IL
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
As I say every time I get a response from the pd list, you people are amazing. I dont have much oil on my pd chain right now and i have been provided (for free) a whole bunch of jumping off points for this problem. thank you so much.
On Mon, Jun 14, 2010 at 4:32 AM, IOhannes m zmoelnig zmoelnig@iem.atwrote:
On 2010-06-13 21:01, james murray wrote:
how about counter/count, select and gate so that you can funnel the metro bangs to the proper file?
is "gate" meant to be [gate] (on object?); and if so, which? i don't seem to have it on my computer.
fgmasdr IOhannes
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
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@goto10.org To: pd-list@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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Random events (as we understand them here) are completely unrelated to one another. So the answer is to pre-load your system with 1, and have all the other values be random. [random 5] | [t b f] X [f 1] will always start with 1, and then give you random numbers. BUT: It might also give you, 1, 1, 1, 1.... I suspect what you really want is to replace the random with an urn. a.
On 13 June 2010 at 20:53 Ben Carney bfcarney@gmail.com 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,
-- benfcarney www.benfcarney.com Chicago, IL