|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectddf.minim.ugens.UGen
ddf.minim.ugens.Noise
public class Noise
Provides a UGen which generates noise.
Nested Class Summary | |
---|---|
static class |
Noise.Tint
enumeration used to specify the tint of the noise |
Nested classes/interfaces inherited from class ddf.minim.ugens.UGen |
---|
UGen.InputType, UGen.UGenInput |
Field Summary | |
---|---|
UGen.UGenInput |
amplitude
Patch to this to control the amplitude of the noise with another UGen. |
UGen.UGenInput |
offset
Patch to this to offset the value of the noise by a fixed value. |
Constructor Summary | |
---|---|
Noise()
Constructor for white noise with an amplitude of 1.0. |
|
Noise(float amplitude)
Constructor for white noise of the specified amplitude. |
|
Noise(float amplitudeValue,
float offsetValue,
Noise.Tint noiseType)
Constructor for noise of a specific tint with a specified amplitude and offset. |
|
Noise(float amplitudeValue,
Noise.Tint noiseType)
Constructor for noise of a specific tint with a specified amplitude. |
|
Noise(Noise.Tint noiseType)
Constructor for noise of the specified tint with an amplitude of 1.0. |
Method Summary | |
---|---|
Noise.Tint |
getTint()
|
protected void |
sampleRateChanged()
Override this method in your derived class to receive a notification when the sample rate of your UGen has changed. |
void |
setTint(Noise.Tint noiseType)
|
protected void |
uGenerate(float[] channels)
Implement this method when you extend UGen. |
Methods inherited from class ddf.minim.ugens.UGen |
---|
addInput, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, setAudioChannelCount, setSampleRate, tick, unpatch, unpatch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public UGen.UGenInput amplitude
public UGen.UGenInput offset
Constructor Detail |
---|
public Noise()
public Noise(float amplitude)
amplitude
- public Noise(Noise.Tint noiseType)
noiseType
- specifies the tint of the noise: WHITE, PINK, RED, BROWNpublic Noise(float amplitudeValue, Noise.Tint noiseType)
amplitudeValue
- noiseType
- specifies the tint of the noise: WHITE, PINK, RED, BROWNpublic Noise(float amplitudeValue, float offsetValue, Noise.Tint noiseType)
amplitudeValue
- offsetValue
- noiseType
- Method Detail |
---|
public void setTint(Noise.Tint noiseType)
public final Noise.Tint getTint()
protected void sampleRateChanged()
UGen
sampleRateChanged
in class UGen
protected void uGenerate(float[] channels)
UGen
getLastValues
method of your audio UGenInput to
retrieve the audio you want to modify, which you will then modify however
you need to, assigning the result to the values in channels
.
uGenerate
in class UGen
channels
- an array representing one sample frame.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |