|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.frinika.contrib.boblang.BezierEnvelopeShaper
public class BezierEnvelopeShaper
Implements a basic Attack/decay/sustain/release envelope shaper.
Constructor Summary | |
---|---|
BezierEnvelopeShaper(BezierParams params)
Constructor which converts envelope data in the Ant Params object into their equivalent attributes. |
Method Summary | |
---|---|
double |
getFactor(int index)
Get the multiplication factor for the current sample based on its position in the sound wave. |
double |
getRelFactor(int index,
int releaseIndex)
Get the multiplication factor for the current sample based on its position in the sound wave but assuming it was released at the specified time. |
boolean |
isNoteFinished(int index,
int releaseIndex)
Return true if the note should have finished by now |
void |
reshapeEnvelope(BezierParams params)
Convert the envelope data in the parameter object into equivalent attributes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BezierEnvelopeShaper(BezierParams params)
Method Detail |
---|
public final void reshapeEnvelope(BezierParams params)
public final double getFactor(int index)
If window is non-zero, then the factor is the average value for a window of samples starting at index and of the specified width
public final double getRelFactor(int index, int releaseIndex)
public final boolean isNoteFinished(int index, int releaseIndex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |