public class SineOscillator extends UnitOscillator
amplitude, DEFAULT_AMPLITUDE, DEFAULT_FREQUENCY, frequency, output, phaseFALSE, TRUE| Constructor and Description |
|---|
SineOscillator() |
SineOscillator(double freq) |
SineOscillator(double freq,
double amp) |
| Modifier and Type | Method and Description |
|---|---|
static double |
fastSin(double currentPhase)
Calculate sine using Taylor expansion.
|
void |
generate(int start,
int limit)
Perform essential synthesis function.
|
convertFrequencyToPhaseIncrement, getOutput, noteOff, noteOff, noteOn, noteOn, usePresetaddPort, addPort, convertHalfLifeToMultiplier, flattenOutputs, generate, getCircuit, getFramePeriod, getFrameRate, getPortByName, getPorts, getSynthesisEngine, getSynthesizer, getTopUnit, getUnitGenerator, isEnabled, pullData, setCircuit, setEnabled, setFrameRate, setPort, setSynthesisEngine, start, start, stop, stopequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUnitGenerator, setPortpublic SineOscillator()
public SineOscillator(double freq)
public SineOscillator(double freq,
double amp)
public void generate(int start,
int limit)
UnitGeneratorgenerate in class UnitGeneratorstart - offset into port bufferslimit - limit offset into port buffers for looppublic static double fastSin(double currentPhase)
currentPhase - in the range of -1.0 to +1.0 for one cycle