|
||||||||||
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.GranulateSteady
public class GranulateSteady
A UGen which chops the incoming audio into steady grains of sound. 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 |
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
protected void |
sampleRateChanged()
Use this method to notify GranulateSteady 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 grainLen
public UGen.UGenInput spaceLen
public UGen.UGenInput fadeLen
Constructor Detail |
---|
public GranulateSteady()
public GranulateSteady(float grainLength, float spaceLength, float fadeLength)
grainLength
- length of each grainspaceLength
- space between each grainfadeLength
- length of the linear fade in and fade out of the grain envelopepublic GranulateSteady(float grainLength, float spaceLength, float fadeLength, float minAmp, float maxAmp)
grainLength
- length of each grainspaceLength
- space between each grainfadeLength
- 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 |