public class FloatPfg 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 float[] |
fin |
protected float |
freq |
protected float[] |
inc
is inc-value per run()-call.
|
protected int |
loop |
protected int[] |
mode
1=upward -1=downward 0=zero 2=timed
|
protected float |
period |
protected int |
read |
protected int |
size |
protected float |
time |
protected int |
write |
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 |
---|
FloatPfg(float freq,
int size) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_add(float _inc,
float _fin,
int _mode) |
boolean |
add_inc(float v_inc,
float v_fin) |
boolean |
add_timed(float duration,
float v_fin) |
void |
clear() |
void |
clear(float out) |
protected void |
complete() |
protected void |
complete2() |
boolean |
isEmpty() |
void |
markLoop()
Must be called before the first add_inc(..)/add_timed(..).
|
void |
run()
Processes an event.
|
void |
set(float out) |
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 float freq
protected final float period
protected final float[] fin
protected final float[] inc
protected final int[] mode
protected final int size
protected int write
protected int read
protected int loop
protected float time
public boolean isEmpty()
public void run()
Realtime
Any implementation of this method should complete promptly and normally. In particular it must not block indefinitely.
public void clear()
public void markLoop()
public void set(float out)
public void clear(float out)
protected void complete()
protected void complete2()
public boolean add_inc(float v_inc, float v_fin)
public boolean add_timed(float duration, float v_fin)
protected boolean _add(float _inc, float _fin, int _mode)