com.frinika.synth.envelope
Class VolumeEnvelope

java.lang.Object
  extended by 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)
           
 
Method Summary
 float getAttenuation()
           
 float getAttenuationPerSample(float deciBels, int timeCents)
           
 boolean isReleased()
           
static void main(java.lang.String[] args)
           
 void release()
           
 void setAttack(int attackTimeCents)
           
 void setDecay(int decayTimeCents)
           
 void setDelay(int delayTimeCents)
           
 void setHold(int holdTimeCents)
           
 void setRelease(int releaseTimeCents)
           
 void setSustain(int centiBelsDecrease)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VolumeEnvelope

public VolumeEnvelope(int sampleRate,
                      float mindB,
                      float maxdB)
Method Detail

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)