public class CrossFade extends UnitGenerator
Mix input[0] and input[1] based on the value of "fade". When fade is -1, output is all input[0]. When fade is 0, output is half input[0] and half input[1]. When fade is +1, output is all input[1].
Pan| Modifier and Type | Field and Description |
|---|---|
UnitInputPort |
fade |
UnitInputPort |
input |
UnitOutputPort |
output |
FALSE, TRUE| Constructor and Description |
|---|
CrossFade() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(int start,
int limit)
Perform essential synthesis function.
|
addPort, addPort, convertHalfLifeToMultiplier, flattenOutputs, generate, getCircuit, getFramePeriod, getFrameRate, getPortByName, getPorts, getSynthesisEngine, getSynthesizer, getTopUnit, getUnitGenerator, isEnabled, pullData, setCircuit, setEnabled, setFrameRate, setPort, setSynthesisEngine, start, start, stop, stoppublic UnitInputPort input
public UnitInputPort fade
public UnitOutputPort output
public void generate(int start,
int limit)
UnitGeneratorgenerate in class UnitGeneratorstart - offset into port bufferslimit - limit offset into port buffers for loop