|
||||||||||
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.ADSR
public class ADSR
A UGen that plays input audio through a standard ADSR envelope based on time from noteOn and noteOff
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." You won't need to patch to this directly, since simply patching to the ADSR itself will achieve the same result. |
Constructor Summary | |
---|---|
ADSR()
Constructor for an ADSR envelope. |
|
ADSR(float maxAmp)
Constructor for an ADSR envelope with maximum amplitude. |
|
ADSR(float maxAmp,
float attTime)
Constructor for an ADSR envelope with maximum amplitude, attack Time. |
|
ADSR(float maxAmp,
float attTime,
float decTime)
Constructor for an ADSR envelope with maximum amplitude, attack Time, and decay time. |
|
ADSR(float maxAmp,
float attTime,
float decTime,
float susLvl)
Constructor for an ADSR envelope with maximum amplitude, attack Time, decay time, and sustain level. |
|
ADSR(float maxAmp,
float attTime,
float decTime,
float susLvl,
float relTime)
Constructor for an ADSR envelope with maximum amplitude, attack Time, decay time, sustain level, and release time. |
|
ADSR(float maxAmp,
float attTime,
float decTime,
float susLvl,
float relTime,
float befAmp)
Constr uctor for an ADSR envelope with maximum amplitude, attack Time, decay time, sustain level, release time, an amplitude before the envelope. |
|
ADSR(float maxAmp,
float attTime,
float decTime,
float susLvl,
float relTime,
float befAmp,
float aftAmp)
Constructor for an ADSR envelope with maximum amplitude, attack Time, decay time, sustain level, release time, an amplitude before the envelope, and an amplitude after the envelope. |
Method Summary | |
---|---|
void |
noteOff()
Specifies that the ADSR envelope should start the release time. |
void |
noteOn()
Speficies that the ADSR envelope should begin. |
protected void |
sampleRateChanged()
Use this method to notify the ADSR that the sample rate has changed. |
void |
setParameters(float maxAmp,
float attTime,
float decTime,
float susLvl,
float relTime,
float befAmp,
float aftAmp)
Permits the changing of the ADSR parameters. |
protected void |
uGenerate(float[] channels)
Implement this method when you extend UGen. |
void |
unpatchAfterRelease(AudioOutput output)
Tell the ADSR that it should unpatch itself from the output after the release time. |
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
Constructor Detail |
---|
public ADSR()
public ADSR(float maxAmp)
public ADSR(float maxAmp, float attTime)
public ADSR(float maxAmp, float attTime, float decTime)
public ADSR(float maxAmp, float attTime, float decTime, float susLvl)
public ADSR(float maxAmp, float attTime, float decTime, float susLvl, float relTime)
public ADSR(float maxAmp, float attTime, float decTime, float susLvl, float relTime, float befAmp)
public ADSR(float maxAmp, float attTime, float decTime, float susLvl, float relTime, float befAmp, float aftAmp)
Method Detail |
---|
public void setParameters(float maxAmp, float attTime, float decTime, float susLvl, float relTime, float befAmp, float aftAmp)
public void noteOn()
public void noteOff()
protected void sampleRateChanged()
sampleRateChanged
in class UGen
public void unpatchAfterRelease(AudioOutput output)
output
- the output this should unpatch itself fromprotected 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 |