com.jsyn.unitgen
Class PanControl

java.lang.Object
  extended by com.jsyn.unitgen.UnitGenerator
      extended by com.jsyn.unitgen.PanControl

public class PanControl
extends UnitGenerator

PanControl unit.

Generates control signals that can be used to control a mixer or the amplitude ports of two units.

 temp = (pan * 0.5) + 0.5;
 output[0] = temp;
 output[1] = 1.0 - temp;
 


Field Summary
 UnitOutputPort output
           
 UnitInputPort pan
           
 
Fields inherited from class com.jsyn.unitgen.UnitGenerator
FALSE, TRUE
 
Constructor Summary
PanControl()
           
 
Method Summary
 void generate(int start, int limit)
          Perform essential synthesis function.
 
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

pan

public UnitInputPort pan

output

public UnitOutputPort output
Constructor Detail

PanControl

public PanControl()
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