SnoiseUG Class Reference

SnoiseUG produces sample-and-hold noise at the tick rate. More...

#import <SnoiseUG.h>

List of all members.

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.


Detailed Description

SnoiseUG produces sample-and-hold noise at the tick rate.

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.

Memory Spaces

SnoiseUGa a output


Member Function Documentation

- (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.

Returns:
Returns an id.

+ (BOOL) shouldOptimize: (unsigned)  arg  

Specifies that all arguments are to be optimized if possible except seed.

Parameters:
arg is an unsigned.
Returns:
Returns an BOOL.

- (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.

Parameters:
seedVal is an DSPDatum.
Returns:
Returns self.

- (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.

Returns:
Returns an id.

- (id) setOutput: (id)  aPatchPoint  

Sets the output patchpoint to aPatchPoint.

Parameters:
aPatchPoint is an id.
Returns:
Returns an id.


The documentation for this class was generated from the following file:

Generated on Sat Dec 5 17:01:17 2009 for MusicKit by  doxygen 1.5.6