public class LatchZeroCrossing extends UnitGenerator
Pass a value unchanged if gate true, otherwise pass input unchanged until input crosses zero then output zero. This can be used to turn off a sound at a zero crossing so there is no pop.
| Modifier and Type | Field and Description |
|---|---|
UnitInputPort |
gate |
UnitInputPort |
input |
UnitOutputPort |
output |
FALSE, TRUE| Constructor and Description |
|---|
LatchZeroCrossing() |
| 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 gate
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