Package eu.bandm.sighkn
Class TApdsr
java.lang.Object
eu.bandm.sig.adlib.FloatClockedSignalSource
eu.bandm.sighkn.TApdsr
- All Implemented Interfaces:
CompilableControlFlow,CompilableDataFlow,FloatSignalSource,FloatSupplier,Realtime,SignalSource<Float>,Runnable,Supplier<Float>
A wrapper around
Apdsr, which generates the gate impuls for the
given duration.
The first trigger value must be != 0.
The duration signal source is sampled once, when the trigger is active.-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.bandm.sig.adlib.FloatSignalSource
FloatSignalSource.CompilableFloatBinaryOperator, FloatSignalSource.FloatAddOperator, FloatSignalSource.FloatDivOperator, FloatSignalSource.FloatMultOperator, FloatSignalSource.FloatSubOperatorNested classes/interfaces inherited from interface eu.bandm.sig.adlib.SignalSource
SignalSource.AddOperator, SignalSource.CompilableBinaryOperator, SignalSource.Constant<A>, SignalSource.DivOperator, SignalSource.MultOperator, SignalSource.SubOperator -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Apdsrprotected final FloatSignalSourceprotected final floatprotected final IntVariableprotected intprotected intprotected final IntSignalSourceFields inherited from class eu.bandm.sig.adlib.FloatClockedSignalSource
outFields inherited from interface eu.bandm.sig.adlib.FloatSignalSource
abs, add, clip, cos, div, E, exp, log, LOG2, metaGetAsFloat, mult, neg, PI, sin, sqrt, SQRT2, square, subFields inherited from interface eu.bandm.sig.adlib.Realtime
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS -
Constructor Summary
ConstructorsConstructorDescriptionTApdsr(int freq, FloatSignalSource duration, FloatSignalSource a, @Opt FloatSignalSource p, FloatSignalSource d, FloatSignalSource s, FloatSignalSource r, IntSignalSource trigger) -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()Processes an event.voidsetFinishedCallback(@Opt Runnable finished) Methods inherited from class eu.bandm.sig.adlib.FloatClockedSignalSource
delayedBy, delayedWith, doCompileDataFlow, get, getAsFloat, iterate, logged, logged, random, randomNormal, randomUniform, repeat, slide, suppliedBy, suppliedBy, switchOverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.bandm.sig.adlib.FloatSignalSource
add, check, clocked, compileDataFlow, div, guard, logger, logger, map, mult, sub, zipWith, zipWithMethods inherited from interface eu.bandm.sig.adlib.Realtime
afap, afap, andThen, asAsynchronousSwingEvent, compileControlFlow, every, every, frequently, frequently, frequently, times, times
-
Field Details
-
duration
-
apdsr
-
trigger
-
gate
-
lastEvent
protected int lastEvent -
holding
protected int holding -
freq
protected final float freq
-
-
Constructor Details
-
TApdsr
public TApdsr(int freq, FloatSignalSource duration, FloatSignalSource a, @Opt @Opt FloatSignalSource p, FloatSignalSource d, FloatSignalSource s, FloatSignalSource r, IntSignalSource trigger)
-
-
Method Details
-
setFinishedCallback
-
run
public void run()Description copied from interface:RealtimeProcesses an event.Any implementation of this method should complete promptly and normally. In particular it must not block indefinitely.
-