Random number generator #91
Replies: 6 comments 6 replies
-
I don't understand the |
Beta Was this translation helpful? Give feedback.
-
Would using the |
Beta Was this translation helpful? Give feedback.
-
Why not that: |
Beta Was this translation helpful? Give feedback.
-
But same as |
Beta Was this translation helpful? Give feedback.
-
Always better not to reinvent the wheel ! |
Beta Was this translation helpful? Give feedback.
-
Also, you can use ba.latch in place of ba.sAndH to ensure one new random
number, instead of a short noise burst:
process = no.noise : ba.latch(button("Next")) : hbargraph("Value",-1,1);
…On Fri, Aug 20, 2021 at 10:11 AM Stéphane Letz ***@***.***> wrote:
Always better not to reinvent the wheel !
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#91 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQZKFNNMI7CL2D4SX4SE5DT52EFPANCNFSM5CQS3FSA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
--
Julius O. Smith III ***@***.***>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/
|
Beta Was this translation helpful? Give feedback.
-
I don't think there is a random number generation function that could be used as is by beginners. When i want to use random values as a modulation source for a synthesizer, i do it this way :
rng = (_,_,no.noise<:!,_,!,_,!,!,!,!,_:select2(_))~_;
I can simply use a pulse coming from a button or a ba.pulse to change the value to a random number between -1 and 1.
This function can be difficult to understand for beginners yet adding randomness to a simple synthesizer can make it way more interesting. Is it worth adding to the faust libraries ? If yes, where should i put it, noises.lib ? Is there a more efficient way to implement such function ?
Beta Was this translation helpful? Give feedback.
All reactions