com.jsyn.unitgen
Class WhiteNoise

java.lang.Object
  extended by com.jsyn.unitgen.UnitGenerator
      extended by com.jsyn.unitgen.WhiteNoise

public class WhiteNoise
extends UnitGenerator

WhiteNoise unit. This unit uses a pseudo-random number generator to produce white noise. The energy in a white noise signal is distributed evenly across the spectrum. A new random number is generated every frame.

See Also:
RedNoise

Field Summary
 UnitInputPort amplitude
           
 UnitOutputPort output
           
 
Fields inherited from class com.jsyn.unitgen.UnitGenerator
FALSE, TRUE
 
Constructor Summary
WhiteNoise()
           
 
Method Summary
 void generate(int start, int limit)
          Perform essential synthesis function.
 
Methods inherited from class com.jsyn.unitgen.UnitGenerator
addPort, convertHalfLifeToMultiplier, flattenOutputs, generate, getFramePeriod, getFrameRate, getPortByName, getPorts, getSynthesisEngine, isEnabled, pullData, setCircuit, setFrameRate, setSynthesisEngine, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

amplitude

public UnitInputPort amplitude

output

public UnitOutputPort output
Constructor Detail

WhiteNoise

public WhiteNoise()
Method Detail

generate

public void generate(int start,
                     int limit)
Description copied from class: UnitGenerator
Perform essential synthesis function.

Specified by:
generate in class UnitGenerator
Parameters:
start - offset into port buffers
limit - limit offset into port buffers for loop