Package eu.bandm.sig.adlib2.lib
Class FloatFMOsci
java.lang.Object
eu.bandm.sig.adlib2.AbstractProcess
eu.bandm.sig.adlib2.FloatStoredSignalSource
eu.bandm.sig.adlib2.lib.FloatFMOsci
- All Implemented Interfaces:
AbstractClockedSignalSource,AbstractSignalSource,Component,FloatClockedSignalSource,FloatSignalSource,Process,FloatSupplier
Two wave-table oscillators, the second with some detuning against the
first's nominal frequency imposes a frequency modulation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.bandm.sig.adlib2.FloatClockedSignalSource
FloatClockedSignalSource.AbstractRandomNested classes/interfaces inherited from interface eu.bandm.sig.adlib2.Process
Process.Proxy -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final FloatTableOscillatorThe oscillator for the modulated output signal.(package private) final FloatTableOscillatorThe oscillator for the modulation signal.Fields inherited from class eu.bandm.sig.adlib2.FloatStoredSignalSource
outFields inherited from interface eu.bandm.sig.adlib2.AbstractClockedSignalSource
STREAM_CHARACTERISTICS, STREAM_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFloatFMOsci(ConstantRealtimeContext rtc, FloatSignalSource nominalFrequency, FloatSignalSource fmFrequencyFactor, FloatSignalSource fmIndex, int tablePoints, FloatHarmonicSpectrum spectrumC, FloatHarmonicSpectrum spectrumM) Build two oscilators and make one modulated by the other. -
Method Summary
Modifier and TypeMethodDescriptionvoidstep()Signals a time event, executing a transition step for this process to the next observable state.Methods inherited from class eu.bandm.sig.adlib2.FloatStoredSignalSource
getAsFloatMethods inherited from class eu.bandm.sig.adlib2.AbstractProcess
getRealtimeContext, hasFixedConstantRealtimeContext, setRealtimeContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.bandm.sig.adlib2.FloatClockedSignalSource
after, drain, drain, duringMethods inherited from interface eu.bandm.sig.adlib2.FloatSignalSource
abs, add, asDouble, asFloat, asInt, ceil, clockedAfter, 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, relateWith, sampleAndHold, selectAffine, series, sqrt, stored, subtract, zero, zeroCrossing, zipWithMethods inherited from interface eu.bandm.sig.adlib2.Process
afterEvery, andThen, conditional, every, every, getProcess, init, setRealtimeContext
-
Field Details
-
oscM
The oscillator for the modulation signal. -
oscC
The oscillator for the modulated output signal.
-
-
Constructor Details
-
FloatFMOsci
public FloatFMOsci(ConstantRealtimeContext rtc, FloatSignalSource nominalFrequency, FloatSignalSource fmFrequencyFactor, FloatSignalSource fmIndex, int tablePoints, FloatHarmonicSpectrum spectrumC, FloatHarmonicSpectrum spectrumM) Build two oscilators and make one modulated by the other.+----------------------------------------------+ fmIndex --------------------------- | | +-----+ \ +-----+ | fmFreqFact ------ * -------|Osc M| -- * --- + ---|Osc C|------- out | / +-----+ / +-----+ | nominalF --------------------------------/ | +----------------------------------------------+- Parameters:
nominalFrequency- the base frequency of the sounding oscillator.fmFrequencyFactor- multiplies the nominal frequency to that of the modulating oscillator.fmIndex- multiplies the output of the modulating oscillator. (=conventional "modulation index")tablePoints- the number of data in the wave tablesspectrumC- the spectrum for the modulated oscillatorspectrumM- the spectrum for the modulating oscillator
-
-
Method Details
-
step
public void step()Description copied from interface:ProcessSignals a time event, executing a transition step for this process to the next observable state.The state of the process after successful completion of this method should be the n-th observable state, if
Process.step()has been invoked n times since the last initialization viaProcess.init(). The behavior of this method is unspecified ifProcess.init()has not been invoked before.FIXME:
Process.setRealtimeContext(eu.bandm.sig.adlib2.RealtimeContext)If this method completes abruptly by throwing an error or unchecked exception, the process state should be considered invalid.
-