Package eu.bandm.sig.adlib2.lib
Class DoubleFMOsci
java.lang.Object
eu.bandm.sig.adlib2.AbstractProcess
eu.bandm.sig.adlib2.DoubleStoredSignalSource
eu.bandm.sig.adlib2.lib.DoubleFMOsci
- All Implemented Interfaces:
AbstractClockedSignalSource,AbstractSignalSource,Component,DoubleClockedSignalSource,DoubleSignalSource,Process,DoubleSupplier
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.DoubleClockedSignalSource
DoubleClockedSignalSource.AbstractRandomNested classes/interfaces inherited from interface eu.bandm.sig.adlib2.Process
Process.Proxy -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final DoubleTableOscillatorThe oscillator for the modulated output signal.(package private) final DoubleTableOscillatorThe oscillator for the modulation signal.Fields inherited from class eu.bandm.sig.adlib2.DoubleStoredSignalSource
outFields inherited from interface eu.bandm.sig.adlib2.AbstractClockedSignalSource
STREAM_CHARACTERISTICS, STREAM_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionDoubleFMOsci(ConstantRealtimeContext rtc, DoubleSignalSource nominalFrequency, DoubleSignalSource fmFrequencyFactor, DoubleSignalSource fmIndex, int tablePoints, DoubleHarmonicSpectrum spectrumC, DoubleHarmonicSpectrum 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.DoubleStoredSignalSource
getAsDoubleMethods 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.DoubleClockedSignalSource
after, drain, drain, during, spliterator, streamMethods inherited from interface eu.bandm.sig.adlib2.DoubleSignalSource
abs, add, asDouble, asFloat, asInt, ceil, clockedAfter, defined, delayed, delayed, divide, equal, floor, getConstantAsDouble, getValueClass, glidingAverage, glidingStandardDeviation, glidingSum, glidingVariance, greaterOrEqual, greaterThan, guard, hasConstantAsDouble, 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
-
DoubleFMOsci
public DoubleFMOsci(ConstantRealtimeContext rtc, DoubleSignalSource nominalFrequency, DoubleSignalSource fmFrequencyFactor, DoubleSignalSource fmIndex, int tablePoints, DoubleHarmonicSpectrum spectrumC, DoubleHarmonicSpectrum 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.
-