com.frinika.synth.envelope
Class VolumeEnvelope
java.lang.Object
com.frinika.synth.envelope.VolumeEnvelope
public final class VolumeEnvelope
- extends java.lang.Object
- Author:
- Peter Johan Salomonsen
Constructor Summary |
VolumeEnvelope(int sampleRate,
float mindB,
float maxdB)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VolumeEnvelope
public VolumeEnvelope(int sampleRate,
float mindB,
float maxdB)
setDelay
public final void setDelay(int delayTimeCents)
setAttack
public final void setAttack(int attackTimeCents)
setHold
public final void setHold(int holdTimeCents)
setDecay
public final void setDecay(int decayTimeCents)
setSustain
public final void setSustain(int centiBelsDecrease)
setRelease
public final void setRelease(int releaseTimeCents)
release
public final void release()
isReleased
public final boolean isReleased()
getAttenuation
public final float getAttenuation()
getAttenuationPerSample
public final float getAttenuationPerSample(float deciBels,
int timeCents)
main
public static void main(java.lang.String[] args)