Package processing.sound
Class BeatDetector.BeatDetectorUGen
java.lang.Object
com.jsyn.unitgen.UnitGenerator
processing.sound.BeatDetector.BeatDetectorUGen
- Enclosing class:
- BeatDetector
-
Field Summary
Modifier and TypeFieldDescriptionFields inherited from class com.jsyn.unitgen.UnitGenerator
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, TRUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generate
(int start, int limit) boolean[]
double[]
double[]
int
void
setSynthesisEngine
(SynthesisEngine synthesisEngine) Methods inherited from class com.jsyn.unitgen.UnitGenerator
addPort, addPort, convertHalfLifeToMultiplier, flattenOutputs, generate, getCircuit, getFramePeriod, getFrameRate, getId, getPortByName, getPorts, getSynthesisEngine, getSynthesizer, getTopUnit, getUnitGenerator, isEnabled, isStartRequired, printConnections, printConnections, printConnections, pullData, setCircuit, setEnabled, setFrameRate, setPort, start, start, start, stop, stop, stop
-
Field Details
-
input
-
current
-
sensitivity
-
output
-
-
Constructor Details
-
BeatDetectorUGen
public BeatDetectorUGen()
-
-
Method Details
-
setSynthesisEngine
- Overrides:
setSynthesisEngine
in classUnitGenerator
-
generate
public void generate(int start, int limit) - Specified by:
generate
in classUnitGenerator
-
getEnergyBuffer
public double[] getEnergyBuffer() -
getDeltaBuffer
public double[] getDeltaBuffer() -
getBeatBuffer
public boolean[] getBeatBuffer() -
getEnergyCursor
public int getEnergyCursor()
-