public class GranulateRandom extends UGen
UGen.InputType, UGen.UGenInput
Modifier and Type | Field and Description |
---|---|
UGen.UGenInput |
audio
The default input is "audio."
|
UGen.UGenInput |
fadeLenMax
Controls the maximum length of the fade in and fade out.
|
UGen.UGenInput |
fadeLenMin
Controls the minimum length of the fade in and fade out.
|
UGen.UGenInput |
grainLenMax
Controls the maximum length of each grain.
|
UGen.UGenInput |
grainLenMin
Controls the minimum length of each grain.
|
UGen.UGenInput |
spaceLenMax
Controls the maximum space between each grain.
|
UGen.UGenInput |
spaceLenMin
Controls the minimum space between each grain.
|
Constructor and Description |
---|
GranulateRandom()
Constructor for GranulateRandom.
|
GranulateRandom(float grainLengthMin,
float spaceLengthMin,
float fadeLengthMin,
float grainLengthMax,
float spaceLengthMax,
float fadeLengthMax)
Constructor for GranulateRandom.
|
GranulateRandom(float grainLengthMin,
float spaceLengthMin,
float fadeLengthMin,
float grainLengthMax,
float spaceLengthMax,
float fadeLengthMax,
float minAmp,
float maxAmp)
Constructor for GranulateRandom
|
Modifier and Type | Method and Description |
---|---|
protected void |
sampleRateChanged()
Use this method to notify GranulateRandom that the sample rate has changed.
|
void |
setAllParameters(float grainLengthMin,
float spaceLengthMin,
float fadeLengthMin,
float grainLengthMax,
float spaceLengthMax,
float fadeLengthMax,
float minAmp,
float maxAmp)
Immediately sets all public class members to new values.
|
void |
setAllTimeParameters(float grainLengthMin,
float spaceLengthMin,
float fadeLengthMin,
float grainLengthMax,
float spaceLengthMax,
float fadeLengthMax)
Immediately sets all public class members concerning time to new values.
|
protected void |
uGenerate(float[] channels)
Implement this method when you extend UGen.
|
addAudio, addControl, addControl, addInput, channelCount, channelCountChanged, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, setChannelCount, setSampleRate, tick, unpatch, unpatch
public UGen.UGenInput audio
public UGen.UGenInput grainLenMin
public UGen.UGenInput spaceLenMin
public UGen.UGenInput fadeLenMin
public UGen.UGenInput grainLenMax
public UGen.UGenInput spaceLenMax
public UGen.UGenInput fadeLenMax
public GranulateRandom()
public GranulateRandom(float grainLengthMin, float spaceLengthMin, float fadeLengthMin, float grainLengthMax, float spaceLengthMax, float fadeLengthMax)
grainLengthMin
- float: minimum grain length of each grain in secondsspaceLengthMin
- float: minimum space between each grain in secondsfadeLengthMin
- float: minimum length of the linear fade in and fade out of the grain envelope in secondsgrainLengthMax
- float: maximum grain length of each grain in secondsspaceLengthMax
- float: maximum space between each grain in secondsfadeLengthMax
- float: maximum length of the linear fade in and fade out of the grain envelope in secondspublic GranulateRandom(float grainLengthMin, float spaceLengthMin, float fadeLengthMin, float grainLengthMax, float spaceLengthMax, float fadeLengthMax, float minAmp, float maxAmp)
grainLengthMin
- float: minimum grain length of each grain in secondsspaceLengthMin
- float: minimum space between each grain in secondsfadeLengthMin
- float: minimum length of the linear fade in and fade out of the grain envelope in secondsgrainLengthMax
- float: maximum grain length of each grain in secondsspaceLengthMax
- float: maximum space between each grain in secondsfadeLengthMax
- float: maximum length of the linear fade in and fade out of the grain envelope in secondsminAmp
- float: minimum amplitude of the envelopemaxAmp
- float: maximum amplitude of the envelopeprotected void sampleRateChanged()
sampleRateChanged
in class UGen
public void setAllTimeParameters(float grainLengthMin, float spaceLengthMin, float fadeLengthMin, float grainLengthMax, float spaceLengthMax, float fadeLengthMax)
grainLengthMin
- float: minimum grain length of each grain in secondsspaceLengthMin
- float: minimum space between each grain in secondsfadeLengthMin
- float: minimum length of the linear fade in and fade out of the grain envelope in secondsgrainLengthMax
- float: maximum grain length of each grain in secondsspaceLengthMax
- float: maximum space between each grain in secondsfadeLengthMax
- float: maximum length of the linear fade in and fade out of the grain envelope in secondspublic void setAllParameters(float grainLengthMin, float spaceLengthMin, float fadeLengthMin, float grainLengthMax, float spaceLengthMax, float fadeLengthMax, float minAmp, float maxAmp)
grainLengthMin
- float: minimum grain length of each grain in secondsspaceLengthMin
- float: minimum space between each grain in secondsfadeLengthMin
- float: minimum length of the linear fade in and fade out of the grain envelope in secondsgrainLengthMax
- float: maximum grain length of each grain in secondsspaceLengthMax
- float: maximum space between each grain in secondsfadeLengthMax
- float: maximum length of the linear fade in and fade out of the grain envelope in secondsminAmp
- float: minimum amplitude of the envelopemaxAmp
- float: maximum amplitude of the envelopeprotected 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
.