|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.UnitFilter
com.jsyn.unitgen.EnvelopeDAHDSR
public class EnvelopeDAHDSR
Six stage envelope similar to the envelope in DLS2. The envelope is triggered when the input goes above THRESHOLD. The envelope is released when the input goes below THRESHOLD.
Field Summary | |
---|---|
UnitInputPort |
amplitude
|
UnitInputPort |
attack
Time in seconds for the rising stage of the envelope to go from 0.0 to 1.0. |
UnitInputPort |
decay
Time in seconds for the falling stage to go from 0 dB to -96 dB. |
UnitInputPort |
delay
Time in seconds for first stage of the envelope, before the attack. |
UnitInputPort |
hold
Time in seconds for the plateau between the attack and decay stages. |
UnitInputPort |
release
Time in seconds to go from 0 dB to -96 dB. |
UnitInputPort |
sustain
Level for the sustain stage. |
static double |
THRESHOLD
|
Fields inherited from class com.jsyn.unitgen.UnitFilter |
---|
input, output |
Fields inherited from class com.jsyn.unitgen.UnitGenerator |
---|
FALSE, TRUE |
Constructor Summary | |
---|---|
EnvelopeDAHDSR()
|
Method Summary | |
---|---|
void |
generate(int start,
int limit)
Perform essential synthesis function. |
Methods inherited from class com.jsyn.unitgen.UnitFilter |
---|
getInput, getOutput |
Methods inherited from class com.jsyn.unitgen.UnitGenerator |
---|
addPort, convertHalfLifeToMultiplier, flattenOutputs, generate, getFramePeriod, getFrameRate, getPortByName, getPorts, getSynthesisEngine, isEnabled, pullData, setCircuit, setFrameRate, setSynthesisEngine, start, stop |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double THRESHOLD
public UnitInputPort delay
public UnitInputPort attack
public UnitInputPort hold
public UnitInputPort decay
public UnitInputPort sustain
public UnitInputPort release
public UnitInputPort amplitude
Constructor Detail |
---|
public EnvelopeDAHDSR()
Method Detail |
---|
public void generate(int start, int limit)
UnitGenerator
generate
in class UnitGenerator
start
- offset into port bufferslimit
- limit offset into port buffers for loop
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |