public class FourWayFade extends UnitGenerator
Mix inputs 0-3 based on the value of two fade ports. You can think of the four inputs arranged clockwise as follows.
input[0] ---- input[1] | | | | | | input[3] ---- input[2]The "fade" port has two parts. Fade[0] fades between the pair of inputs (0,3) and the pair of inputs (1,2). Fade[1] fades between the pair of inputs (0,1) and the pair of inputs (3,2).
Fade[0] Fade[1] Output -1 -1 Input[3] -1 +1 Input[0] +1 -1 Input[2] +1 +1 Input[1] -----Fade[0]-----> A | | Fade[1] | |
Modifier and Type | Field and Description |
---|---|
UnitInputPort |
fade |
UnitInputPort |
input |
UnitOutputPort |
output |
FALSE, PORT_NAME_AMPLITUDE, PORT_NAME_CUTOFF, PORT_NAME_FREQUENCY, PORT_NAME_FREQUENCY_SCALER, PORT_NAME_INPUT, PORT_NAME_OUTPUT, PORT_NAME_PAN, PORT_NAME_PHASE, PORT_NAME_PRESSURE, PORT_NAME_TIMBRE, PORT_NAME_TIME, synthesisEngine, TRUE, VERY_SMALL_FLOAT
Constructor and Description |
---|
FourWayFade() |
Modifier and Type | Method and Description |
---|---|
void |
generate(int start,
int limit)
Perform essential synthesis function.
|
addPort, addPort, autoStop, convertHalfLifeToMultiplier, convertTimeToRate, flattenOutputs, generate, getCircuit, getFramePeriod, getFrameRate, getId, getPortByName, getPorts, getSynthesisEngine, getSynthesizer, getTopUnit, getUnitGenerator, incrementWrapPhase, isEnabled, isStartRequired, printConnections, printConnections, printConnections, pullData, setCircuit, setEnabled, setFrameRate, setPort, setSynthesisEngine, start, start, start, stop, stop, stop
public UnitInputPort input
public UnitInputPort fade
public UnitOutputPort output
public void generate(int start, int limit)
UnitGenerator
generate
in class UnitGenerator
start
- offset into port bufferslimit
- limit offset into port buffers for loop