|
||||||||||
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.Damp
public class Damp
A UGen that starts at an amplitude value and changes to zero over a specified time. All times are measured in seconds.
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 don't need to patch directly to this input, patching to the UGen itself will accomplish the same thing. |
Constructor Summary | |
---|---|
Damp()
Constructor for Damp envelope. |
|
Damp(float dampTime)
Constructor for Damp envelope. |
|
Damp(float attackTime,
float dampTime)
Constructor for Damp envelope. |
|
Damp(float attackTime,
float dampTime,
float maxAmp)
Constructor for Damp envelope. |
|
Damp(float attackTime,
float dampTime,
float maxAmp,
float befAmp,
float aftAmp)
Constructor for Damp envelope. |
Method Summary | |
---|---|
void |
activate()
Specifies that the damp envelope should begin. |
protected void |
sampleRateChanged()
Override this method in your derived class to receive a notification when the sample rate of your UGen has changed. |
void |
setAttackTime(float attackTime)
Permits the setting of the attackTime parameter. |
void |
setDampTime(float dampTime)
Permits the setting of the attackTime parameter. |
void |
setDampTimeFromDuration(float duration)
Permits the setting of the attackTime parameter. |
protected void |
uGenerate(float[] channels)
Implement this method when you extend UGen. |
void |
unpatchAfterDamp(AudioOutput output)
Tell the Damp 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 Damp()
public Damp(float dampTime)
dampTime
- decay time of the damp envelopepublic Damp(float attackTime, float dampTime)
attackTime
- rise time of the damp envelopedampTime
- decay time of the damp envelopepublic Damp(float attackTime, float dampTime, float maxAmp)
attackTime
- rise time of the damp envelopedampTime
- decay time of the damp envelopemaxAmp
- maximum amlitude of the damp envelopepublic Damp(float attackTime, float dampTime, float maxAmp, float befAmp, float aftAmp)
attackTime
- rise time of the damp envelopedampTime
- decay time of the damp envelopemaxAmp
- maximum amlitude of the damp envelopebefAmp
- amplitude before the damp envelopeaftAmp
- amplitude after the damp envelopeMethod Detail |
---|
public void activate()
public void setAttackTime(float attackTime)
attackTime
- rise time of the damp envelopepublic void setDampTime(float dampTime)
dampTime
- decay time of the damp envelopepublic void setDampTimeFromDuration(float duration)
duration
- duration of the entire damp envelopeprotected void sampleRateChanged()
UGen
sampleRateChanged
in class UGen
public void unpatchAfterDamp(AudioOutput output)
output
- AudioOutput for this Dampprotected 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 |