Er, I don't know why I typed integer... it can be a float, or whatever.

-GT

On Thu, Jul 15, 2010 at 2:21 AM, George Toledo <[email protected]> wrote:

> See if this example helps illustrate a solution for you. Click on the
> Viewer, and you will trigger a sample and hold of a random seed from the
> shifting of an integer.
>
> Strictly speaking, the sampling of random value actually doesn't need to
> have a counter involved, just anything that creates a value range that goes
> back and forth between 0 and 1/False and True (like a mouse click).
>
> I added the Counter and Signal patch so that any number shift will cause
> the sample/hold action, per your question of having *any value shift* be
> able to hold a random number. If you like, try disconnecting the counter,
> and manually entering in a value in the Parameter[x] input on the Signal
> Patch. You will see a random number generated each time.
>
> Peace,
> George Toledo
>
> 2010/7/15 Matti Niinimäki <[email protected]>
>
>> The Watcher patch should do what you want.
>>
>>
>> Matti
>>
>> On 15 Jul, 2010, at 08:34 , Rob Duarte wrote:
>>
>> > Hi,
>> >
>> > How can I get something (like sampling a random number for example) to
>> happen every time a number value changes?  It seems so simple, but I have
>> tried everything - using the number value as input to Pulse doesn't work
>> because changing from 5 to 7 doesn't actually provide a leading or trailing
>> EDGE (they're both TRUE).  same problem if i use a Javascript patch to
>> output TRUE/FALSE (it's always true).  i've compared the previous number to
>> the current one but the result is the same - a constant true value as the
>> input to Pulse.  I'm looking for something like a Bang in Max.. a quick
>> up/down true/false blip.  There's got to be an easy way to do this, right???
>> >
>> > Thanks for any help,
>> > Rob
>> >
>> > <randomer.qtz>
>> > _______________________________________________
>> > Do not post admin requests to the list. They will be ignored.
>> > Quartzcomposer-dev mailing list      (
>> [email protected])
>> > Help/Unsubscribe/Update your Subscription:
>> >
>> http://lists.apple.com/mailman/options/quartzcomposer-dev/m%40mansteri.com
>> >
>> > This email sent to [email protected]
>>
>>  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Quartzcomposer-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>>
>> http://lists.apple.com/mailman/options/quartzcomposer-dev/gtoledo3%40gmail.com
>>
>> This email sent to [email protected]
>>
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to