com.jsyn.unitgen
Class Circuit

java.lang.Object
  extended by com.jsyn.unitgen.UnitGenerator
      extended by com.jsyn.unitgen.Circuit
Direct Known Subclasses:
ClassicSynthVoice, DrumWoodFM, NoiseHit, WaveShapingVoice

public class Circuit
extends UnitGenerator

Contains a list of units that are executed together.


Field Summary
 
Fields inherited from class com.jsyn.unitgen.UnitGenerator
FALSE, TRUE
 
Constructor Summary
Circuit()
           
 
Method Summary
 void add(UnitGenerator unit)
          Add a unit to the circuit.
 void flattenOutputs()
          Flatten output ports so we don't output a changing signal when stopped.
 void generate(int start, int limit)
          Perform essential synthesis function.
 void setSynthesisEngine(SynthesisEngine engine)
           
 
Methods inherited from class com.jsyn.unitgen.UnitGenerator
addPort, convertHalfLifeToMultiplier, generate, getFramePeriod, getFrameRate, getPortByName, getPorts, getSynthesisEngine, isEnabled, pullData, setCircuit, setFrameRate, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Circuit

public Circuit()
Method Detail

generate

public void generate(int start,
                     int limit)
Description copied from class: UnitGenerator
Perform essential synthesis function.

Specified by:
generate in class UnitGenerator
Parameters:
start - offset into port buffers
limit - limit offset into port buffers for loop

flattenOutputs

public void flattenOutputs()
Flatten output ports so we don't output a changing signal when stopped.

Overrides:
flattenOutputs in class UnitGenerator

setSynthesisEngine

public void setSynthesisEngine(SynthesisEngine engine)
Overrides:
setSynthesisEngine in class UnitGenerator
Parameters:
engine - the synthesisEngine to set

add

public void add(UnitGenerator unit)
Add a unit to the circuit.