|
||||||||||
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.GranulateRandom
public class GranulateRandom
GranulateRandom is granular synthesis of the incoming audio. Currently, there are no inputs to this UGen other than the incoming audio. All parameters must be set at construction. The envelope of these sounds has a linear fade in and fade out.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ddf.minim.ugens.UGen |
---|
UGen.InputType, UGen.UGenInput |
Field Summary | |
---|---|
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 manimum length of each grain. |
UGen.UGenInput |
grainLenMin
Controls the minimum length of each grain. |
UGen.UGenInput |
spaceLenMax
Controls the manimum space between each grain. |
UGen.UGenInput |
spaceLenMin
Controls the minimum space between each grain. |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
protected void |
sampleRateChanged()
Use this method to notify GranulateRandom that the sample rate 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 |
Field Detail |
---|
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
Constructor Detail |
---|
public GranulateRandom()
public GranulateRandom(float grainLengthMin, float spaceLengthMin, float fadeLengthMin, float grainLengthMax, float spaceLengthMax, float fadeLengthMax)
grainLengthMin
- minimum grain length of each grainspaceLengthMin
- minimum space between each grainfadeLengthMin
- minimum length of the linear fade in and fade out of the grain envelopegrainLengthMax
- maximum grain length of each grainspaceLengthMax
- maximum space between each grainfadeLengthMax
- maximum length of the linear fade in and fade out of the grain envelopepublic GranulateRandom(float grainLengthMin, float spaceLengthMin, float fadeLengthMin, float grainLengthMax, float spaceLengthMax, float fadeLengthMax, float minAmp, float maxAmp)
grainLengthMin
- minimum grain length of each grainspaceLengthMin
- minimum space between each grainfadeLengthMin
- minimum length of the linear fade in and fade out of the grain envelopegrainLengthMax
- maximum grain length of each grainspaceLengthMax
- maximum space between each grainfadeLengthMax
- maximum length of the linear fade in and fade out of the grain envelopeminAmp
- minimum amplitude of the envelopemaxAmp
- maximum amplitude of the envelopeMethod Detail |
---|
protected void sampleRateChanged()
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 |