|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ddf.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 |
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 amplitude,
Noise.Tint noiseType)
Costructor 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 | |
---|---|
protected void |
sampleRateChanged()
Override this method in your derived class to receive a notification when the sample rate of your UGen has changed. |
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, setSampleRate, tick, unpatch, unpatch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 amplitude, Noise.Tint noiseType)
amplitude
- noiseType
- specifies the tint of the noise: WHITE, PINK, RED, BROWNMethod Detail |
---|
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 |