com.jsyn.unitgen
Class CrossFade
java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.CrossFade
public class CrossFade
- extends UnitGenerator
CrossFade between parts of the input.
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].
- Version:
- 016
- See Also:
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
fade
public UnitInputPort fade
output
public UnitOutputPort output
CrossFade
public CrossFade()
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