public class Apdsr extends FloatClockedSignalSource
FloatSignalSource.CompilableFloatBinaryOperator, FloatSignalSource.FloatAddOperator, FloatSignalSource.FloatDivOperator, FloatSignalSource.FloatMultOperator, FloatSignalSource.FloatSubOperator
SignalSource.AddOperator, SignalSource.CompilableBinaryOperator, SignalSource.Constant<A>, SignalSource.DivOperator, SignalSource.MultOperator, SignalSource.SubOperator
Modifier and Type | Field and Description |
---|---|
protected FloatSignalSource |
a |
protected FloatSignalSource |
d |
protected @Opt Runnable |
finishedCallback |
protected float |
freq |
protected IntSignalSource |
gate |
protected int |
lastEvent |
protected float |
multiplier
Used for the steepness inputs: what to increment in every runStep when
"a" "d" "r" input value == 1.0f ?
1.0 / msec =^= (1 / freq) / (msec / freq) =^= (1_000 / freq) / runStep |
protected @Opt FloatSignalSource |
p |
protected FloatSignalSource |
r |
protected FloatSignalSource |
s |
protected int |
state |
protected IntSignalSource |
trigger |
out
abs, add, clip, cos, div, E, exp, log, LOG2, metaGetAsFloat, mult, neg, PI, sin, sqrt, SQRT2, square, sub
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS
Constructor and Description |
---|
Apdsr(int freq,
FloatSignalSource a,
@Opt FloatSignalSource p,
FloatSignalSource d,
FloatSignalSource s,
FloatSignalSource r,
IntSignalSource trigger,
IntSignalSource gate) |
Modifier and Type | Method and Description |
---|---|
void |
run()
Processes an event.
|
void |
setFinishedCallback(@Opt Runnable finished) |
delayedBy, delayedWith, doCompileDataFlow, get, getAsFloat, iterate, logged, logged, random, randomNormal, randomUniform, repeat, slide, suppliedBy, suppliedBy, switchOver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, check, clip, clocked, compileDataFlow, constant, div, guard, logger, logger, lowerLogSpread, map, mult, project, project, project, sub, upperLogSpread, zipWith, zipWith
adHoc, afap, afap, andThen, asAsynchronousSwingEvent, compileControlFlow, every, every, frequently, frequently, frequently, sequence, times, times
protected final FloatSignalSource a
protected final FloatSignalSource d
protected final FloatSignalSource s
protected final FloatSignalSource r
@Opt protected final @Opt FloatSignalSource p
protected final IntSignalSource trigger
protected final IntSignalSource gate
protected final float freq
protected final float multiplier
protected int state
protected int lastEvent
public Apdsr(int freq, FloatSignalSource a, @Opt @Opt FloatSignalSource p, FloatSignalSource d, FloatSignalSource s, FloatSignalSource r, IntSignalSource trigger, IntSignalSource gate)