public class PitchDetector extends UnitGenerator
Note that a stable monophonic signal is required for accurate pitch tracking.
Modifier and Type | Field and Description |
---|---|
UnitOutputPort |
confidence |
UnitOutputPort |
frequency |
UnitInputPort |
input |
UnitOutputPort |
period |
protected SignalCorrelator |
signalCorrelator |
UnitOutputPort |
updated |
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 |
---|
PitchDetector() |
Modifier and Type | Method and Description |
---|---|
SignalCorrelator |
createSignalCorrelator() |
void |
generate(int start,
int limit)
Perform essential synthesis function.
|
float[] |
getDiffs()
For debugging only.
|
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 UnitOutputPort period
public UnitOutputPort confidence
public UnitOutputPort frequency
public UnitOutputPort updated
protected SignalCorrelator signalCorrelator
public SignalCorrelator createSignalCorrelator()
public void generate(int start, int limit)
UnitGenerator
generate
in class UnitGenerator
start
- offset into port bufferslimit
- limit offset into port buffers for looppublic float[] getDiffs()