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.FloatSubOperator
Nested 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
Modifier and TypeFieldDescriptionprotected final Apdsr
protected final FloatSignalSource
protected final float
protected final IntVariable
protected int
protected int
protected final IntSignalSource
Fields inherited from class eu.bandm.sig.adlib.FloatClockedSignalSource
out
Fields 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, sub
Fields inherited from interface eu.bandm.sig.adlib.Realtime
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS
-
Constructor Summary
ConstructorDescriptionTApdsr
(int freq, FloatSignalSource duration, FloatSignalSource a, @Opt FloatSignalSource p, FloatSignalSource d, FloatSignalSource s, FloatSignalSource r, IntSignalSource trigger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Processes an event.void
setFinishedCallback
(@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, switchOver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.bandm.sig.adlib.FloatSignalSource
add, check, clocked, compileDataFlow, div, guard, logger, logger, map, mult, sub, zipWith, zipWith
Methods 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:Realtime
Processes an event.Any implementation of this method should complete promptly and normally. In particular it must not block indefinitely.
-