|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jsyn.unitgen.UnitGenerator
public abstract class UnitGenerator
Base class for all unit generators.
Field Summary | |
---|---|
static double |
FALSE
|
static double |
TRUE
|
Constructor Summary | |
---|---|
UnitGenerator()
|
Method Summary | |
---|---|
void |
addPort(UnitPort port)
|
double |
convertHalfLifeToMultiplier(double halfLife)
Calculate signal based on halflife of an exponential decay. |
void |
flattenOutputs()
Flatten output ports so we don't output a changing signal when stopped. |
void |
generate()
Generate a full block. |
abstract void |
generate(int start,
int limit)
Perform essential synthesis function. |
double |
getFramePeriod()
|
int |
getFrameRate()
|
UnitPort |
getPortByName(java.lang.String portName)
|
java.util.Enumeration<UnitPort> |
getPorts()
|
SynthesisEngine |
getSynthesisEngine()
|
boolean |
isEnabled()
|
void |
pullData(long frameCount,
int start,
int limit)
|
void |
setCircuit(Circuit circuit)
|
void |
setFrameRate(int rate)
|
void |
setSynthesisEngine(SynthesisEngine synthesisEngine)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double FALSE
public static final double TRUE
Constructor Detail |
---|
public UnitGenerator()
Method Detail |
---|
public int getFrameRate()
public double getFramePeriod()
public void addPort(UnitPort port)
public UnitPort getPortByName(java.lang.String portName)
public java.util.Enumeration<UnitPort> getPorts()
public abstract void generate(int start, int limit)
start
- offset into port bufferslimit
- limit offset into port buffers for looppublic void generate()
public SynthesisEngine getSynthesisEngine()
public void setSynthesisEngine(SynthesisEngine synthesisEngine)
synthesisEngine
- the synthesisEngine to setpublic double convertHalfLifeToMultiplier(double halfLife)
public void flattenOutputs()
public void setCircuit(Circuit circuit)
public void pullData(long frameCount, int start, int limit)
public boolean isEnabled()
public void start()
public void stop()
public void setFrameRate(int rate)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |