#import <SnoiseUG.h>
Public Member Functions | |
(id) | - idleSelf |
You never send this message. | |
(id) | - setSeed: |
Sets the seed that's used to prime the random number generator. | |
(id) | - anySeed |
Sets the random number seed to a value that's guaranteed never to have been used in previous invocations of this method. | |
(id) | - setOutput: |
Sets the output patchpoint to aPatchPoint. | |
Static Public Member Functions | |
(BOOL) | + shouldOptimize: |
Specifies that all arguments are to be optimized if possible except seed. |
SnoiseUG produces a series of random values within the range
-1.0 <= f < 1.0
A new random value is generated once per tick. A similar class, UnoiseUG, produces a new random value every sample.
SnoiseUGa a output
- (id) idleSelf |
You never send this message.
It's invoked by sending the idle message to the object. Sets the output patchpoint to sink, thus ensuring that the object does not produce any output. Note that you must send setOutput: and run again to use the MKUnitGenerator after sending idle.
+ (BOOL) shouldOptimize: | (unsigned) | arg |
Specifies that all arguments are to be optimized if possible except seed.
arg | is an unsigned. |
- (id) setSeed: | (DSPDatum) | seedVal |
Sets the seed that's used to prime the random number generator.
If you want to create a unique series of random numbers, you should invoke the anySeed method instead of this one. This is the current value and thus is changed by the unit generator itself.
seedVal | is an DSPDatum. |
- (id) anySeed |
Sets the random number seed to a value that's guaranteed never to have been used in previous invocations of this method.
This is particularly useful if you're using more than one SnoiseUG and you want to ensure that they all produce different signals.
- (id) setOutput: | (id) | aPatchPoint |
Sets the output patchpoint to aPatchPoint.
aPatchPoint | is an id. |