public class GranulateSteady extends UGen
UGen.InputType, UGen.UGenInput
Modifier and Type | Field and Description |
---|---|
UGen.UGenInput |
audio
The default input is "audio."
|
UGen.UGenInput |
fadeLen
Controls the length of the fade in and fade out.
|
UGen.UGenInput |
grainLen
Controls the length of each grain.
|
UGen.UGenInput |
spaceLen
Controls the space between each grain.
|
Constructor and Description |
---|
GranulateSteady()
Constructor for GranulateSteady.
|
GranulateSteady(float grainLength,
float spaceLength,
float fadeLength)
Constructor for GranulateSteady.
|
GranulateSteady(float grainLength,
float spaceLength,
float fadeLength,
float minAmp,
float maxAmp)
Constructor for GranulateSteady.
|
Modifier and Type | Method and Description |
---|---|
void |
reset()
Sets the state of this granulate to the very start of a grain.
|
protected void |
sampleRateChanged()
Use this method to notify GranulateSteady that the sample rate has changed.
|
void |
setAllParameters(float grainLength,
float spaceLength,
float fadeLength,
float minAmp,
float maxAmp)
Immediately sets all public class members to new values.
|
void |
setAllTimeParameters(float grainLength,
float spaceLength,
float fadeLength)
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 grainLen
public UGen.UGenInput spaceLen
public UGen.UGenInput fadeLen
public GranulateSteady()
public GranulateSteady(float grainLength, float spaceLength, float fadeLength)
grainLength
- float: length of each grain in secondsspaceLength
- float: space between each grain in secondsfadeLength
- float: length of the linear fade in and fade out of the grain envelope in secondspublic GranulateSteady(float grainLength, float spaceLength, float fadeLength, float minAmp, float maxAmp)
grainLength
- float: length of each grain in secondsspaceLength
- float: space between each grain in secondsfadeLength
- float: 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 grainLength, float spaceLength, float fadeLength)
grainLength
- float: grain length of each grain in secondsspaceLength
- float: space between each grain in secondsfadeLength
- float: length of the linear fade in and fade out of the grain envelope in secondspublic void setAllParameters(float grainLength, float spaceLength, float fadeLength, float minAmp, float maxAmp)
grainLength
- float: grain length of each grain in secondsspaceLength
- float: space between each grain in secondsfadeLength
- float: 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 envelopepublic void reset()
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
.