com.jsyn.unitgen
Class PeakFollower
java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.PeakFollower
public class PeakFollower
- extends UnitGenerator
Tracks the peaks of an input signal. This can be used to monitor the overall
amplitude of a signal. The output can be used to drive color organs,
vocoders, VUmeters, etc.
Output drops exponentially when the input drops below the current output
level. The output approaches zero based on the value on the halfLife port.
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
current
public UnitVariablePort current
halfLife
public UnitInputPort halfLife
output
public UnitOutputPort output
PeakFollower
public PeakFollower()
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