com.softsynth.jsyn
Class LatchUnit
java.lang.Object
java.util.Observable
com.softsynth.jsyn.SynthObject
com.softsynth.jsyn.SynthSound
com.softsynth.jsyn.SynthUnit
com.softsynth.jsyn.LatchUnit
public class LatchUnit
- extends SynthUnit
LatchUnit unit.
Pass a value unchanged if gate true, otherwise output held value.
output = ( gate > 0.0 ) ? input : previous_output;
- Version:
- JSyn Version 006
- Author:
- (C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved
- See Also:
MinimumUnit
Methods inherited from class com.softsynth.jsyn.SynthSound |
addPort, addPort, findNamedPort, getName, getNumPorts, getPortAt, getPriority, setPriority, setStage, setStage, start, start, stop, stop |
Methods inherited from class java.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
input
public SynthInput input
gate
public SynthInput gate
output
public SynthOutput output
LatchUnit
public LatchUnit(SynthContext synthContext,
int calculationRate)
throws SynthException
- Throws:
SynthException
LatchUnit
public LatchUnit(SynthContext synthContext)
throws SynthException
- Create a SynthUnit that runs at Synth.RATE_AUDIO.
- Throws:
SynthException
- If name does not match list of valid units.
Note that match is case sensitive.
LatchUnit
public LatchUnit()
throws SynthException
- Throws:
SynthException