public class BrownNoise extends UnitGenerator implements UnitSource
output = (previous * (1.0 - damping)) + (random * amplitude)
The output drifts quite a bit and will generally exceed the range of +/1 amplitude.WhiteNoise
,
RedNoise
,
PinkNoise
Modifier and Type | Field and Description |
---|---|
UnitInputPort |
amplitude |
UnitInputPort |
damping
Increasing the damping will effectively increase the cutoff
frequency of a high pass filter that is used to block DC bias.
|
UnitOutputPort |
output |
FALSE, PORT_NAME_AMPLITUDE, PORT_NAME_CUTOFF, PORT_NAME_FREQUENCY, PORT_NAME_FREQUENCY_SCALER, PORT_NAME_INPUT, PORT_NAME_OUTPUT, PORT_NAME_PAN, PORT_NAME_PHASE, PORT_NAME_PRESSURE, PORT_NAME_TIMBRE, PORT_NAME_TIME, synthesisEngine, TRUE, VERY_SMALL_FLOAT
Constructor and Description |
---|
BrownNoise() |
Modifier and Type | Method and Description |
---|---|
void |
generate(int start,
int limit)
Perform essential synthesis function.
|
UnitOutputPort |
getOutput() |
addPort, addPort, autoStop, convertHalfLifeToMultiplier, convertTimeToRate, flattenOutputs, generate, getCircuit, getFramePeriod, getFrameRate, getId, getPortByName, getPorts, getSynthesisEngine, getSynthesizer, getTopUnit, getUnitGenerator, incrementWrapPhase, isEnabled, isStartRequired, printConnections, printConnections, printConnections, pullData, setCircuit, setEnabled, setFrameRate, setPort, setSynthesisEngine, start, start, start, stop, stop, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUnitGenerator
public UnitInputPort damping
public UnitInputPort amplitude
public UnitOutputPort output
public void generate(int start, int limit)
UnitGenerator
generate
in class UnitGenerator
start
- offset into port bufferslimit
- limit offset into port buffers for looppublic UnitOutputPort getOutput()
getOutput
in interface UnitSource