public class FloatLinearOscillator extends FloatOscillator
FloatSignalSource.CompilableFloatBinaryOperator, FloatSignalSource.FloatAddOperator, FloatSignalSource.FloatDivOperator, FloatSignalSource.FloatMultOperator, FloatSignalSource.FloatSubOperator
SignalSource.AddOperator, SignalSource.CompilableBinaryOperator, SignalSource.Constant<A>, SignalSource.DivOperator, SignalSource.MultOperator, SignalSource.SubOperator
osciFreq, sampleFreq
out
abs, add, clip, cos, div, E, exp, log, LOG2, metaGetAsFloat, mult, neg, PI, sin, sqrt, SQRT2, square, sub
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS
Constructor and Description |
---|
FloatLinearOscillator(float sampleFreq,
float osciFreq) |
FloatLinearOscillator(float sampleFreq,
FloatControl osciFreqControl) |
FloatLinearOscillator(float sampleFreq,
FloatControl osciFreqControl,
float phase) |
FloatLinearOscillator(float sampleFreq,
float osciFreq,
float phase) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
run()
Processes an event.
|
void |
setFrequency(float osciFreq) |
getFrequency, modulated, modulator
delayedBy, delayedWith, doCompileDataFlow, get, getAsFloat, iterate, logged, logged, random, randomNormal, randomUniform, repeat, slide, suppliedBy, suppliedBy, switchOver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, check, clip, clocked, compileDataFlow, constant, div, guard, logger, logger, lowerLogSpread, map, mult, project, project, project, sub, upperLogSpread, zipWith, zipWith
adHoc, afap, afap, andThen, asAsynchronousSwingEvent, compileControlFlow, every, every, frequently, frequently, frequently, sequence, times, times
public FloatLinearOscillator(float sampleFreq, float osciFreq)
public FloatLinearOscillator(float sampleFreq, float osciFreq, float phase)
public FloatLinearOscillator(float sampleFreq, FloatControl osciFreqControl)
public FloatLinearOscillator(float sampleFreq, FloatControl osciFreqControl, float phase)
public void run()
Realtime
Any implementation of this method should complete promptly and normally. In particular it must not block indefinitely.
public void setFrequency(float osciFreq)
setFrequency
in class FloatOscillator
public static void main(String[] args)