Package eu.bandm.sig.adlib2.math
Class FloatOscillator
java.lang.Object
eu.bandm.sig.adlib2.math.FloatOscillator
- All Implemented Interfaces:
AbstractSignalSource,CompilableDataFlow,Component,FloatSignalSource,FloatSupplier
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFloatOscillator(float frequency, float phase, ConstantRealtimeContext context) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.bandm.sig.adlib2.compile.CompilableDataFlow
compileDataFlowTo, hasDataFlowIOMethods inherited from interface eu.bandm.sig.adlib2.FloatSignalSource
abs, add, asDouble, asFloat, asInt, ceil, compileMainSignalSource, DEBUG, defined, delayed, delayed, divide, equal, floor, getConstantAsFloat, getValueClass, glidingAverage, glidingStandardDeviation, glidingSum, glidingVariance, greaterOrEqual, greaterThan, guard, hasConstantAsFloat, invariant, lessOrEqual, lessThan, map, max, min, modulo, multiply, negate, negative, nonEqual, nonnegative, nonpositive, nonzero, notANumber, positive, power, probe, publishStoredValueVariable, relateWith, sampleAndHold, selectAffine, series, sqrt, stored, subtract, zero, zeroCrossing, zipWith
-
Field Details
-
PI
public static final float PI- See Also:
-
-
Constructor Details
-
FloatOscillator
-
-
Method Details
-
getProcess
Description copied from interface:ComponentReturns the delegate object that effects changes of observable state.- Specified by:
getProcessin interfaceComponent
-
getAsFloat
public float getAsFloat()Description copied from interface:FloatSignalSourceReturns the current value of this signal source.The value may be either computed on demand, or retrieved from storage.
Implementations of this method should have no side effect.
- Specified by:
getAsFloatin interfaceFloatSignalSource- Specified by:
getAsFloatin interfaceFloatSupplier- Returns:
- the current value of this signal source
-
compileDataFlow
Description copied from interface:FloatSignalSourceReturns a code generator for outputting the value of this entity.This implementation generates code to invoke
this.getAsFloat().- Specified by:
compileDataFlowin interfaceCompilableDataFlow- Specified by:
compileDataFlowin interfaceFloatSignalSource
-
patch
-
compile
-
main
-