-
wannabeafrog
Hello
Im kinda new to pure data, been learning myself (with a little guide from friends). Building a patch for a project, I've found myself with a problem I can't seem to solve.
This is how my patch looks so far: http://img87.imageshack.us/img87/4498/stochpatch.jpg
So, I'm trying to build a non-deterministic patch so the machine composes the music itself. As you can see in the picture, so far one of the few controls is the tempo which determines a [metro] that simultaneously bangs to diverse operations; These operations determine diverse rythmic figures (which are explained on the pic). All these figures go through a lot of gates on that subpatch [Pd switch] (right window of the pic) and only one of them at a time gets to pass to the line envelope (which ill develop better later on).
So far so good, problem came when I wanted to give probabilities to each one of these operations, so I could give, say 30% chance to the blacks and 7% chance to the triplet blacks. To do this, I tried to send a sycronized [metro] (with the tempo one) which goes to a [random 100] which would determine which figure will sound. Thing is I havent been able to set a threshold for each one of the options on the [hradio], I tried with [clips], with different [expr], but I keep getting bangs even when the number doesn't belong. Any ideas?
Is there anyway I could call elements off a list? Say if my [random] pops a "33" I could check on a list and see to which figure would 33 belong?
If I didn't explain myself clearly I appologize, english is not my main language.
Any ideas? Basically, I need a kind of a fusion between [clip] and [spigot].
Help much appreciated.
-
wannabeafrog
haha I knew the answer would be that simple. It helped me a lot, thank you very much!