com.jsyn.unitgen
Class Pan
java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.Pan
public class Pan
- extends UnitGenerator
Pan unit. The profile is constant amplitude and not constant energy.
Takes an input and pans it between two outputs based on value of pan. When
pan is -1, output[0] is input, and output[1] is zero. When pan is 0,
output[0] and output[1] are both input/2. When pan is +1, output[0] is zero,
and output[1] is input.
- See Also:
SelectUnit
Constructor Summary |
Pan()
|
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 |
input
public UnitInputPort input
pan
public UnitInputPort pan
- Pan control varies from -1.0 for full left to +1.0 for full right. Set to
0.0 for center.
output
public UnitOutputPort output
Pan
public Pan()
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 bufferslimit
- limit offset into port buffers for loop