Package eu.bandm.sighkn
Class FloatPfg
java.lang.Object
eu.bandm.sig.adlib.FloatClockedSignalSource
eu.bandm.sighkn.FloatPfg
- All Implemented Interfaces:
CompilableControlFlow
,CompilableDataFlow
,FloatSignalSource
,FloatSupplier
,Realtime
,SignalSource<Float>
,Runnable
,Supplier<Float>
-
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 float[]
protected final float
protected final float[]
is inc-value per run()-call.protected int
protected final int[]
1=upward -1=downward 0=zero 2=timedprotected final float
protected int
protected final int
protected float
protected int
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
boolean
isEmpty()
void
markLoop()
Must be called before the first add_inc(..)/add_timed(..).void
run()
Processes an event.void
set
(float out) 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
-
freq
protected final float freq -
period
protected final float period -
fin
protected final float[] fin -
inc
protected final float[] incis inc-value per run()-call. But in mode==2 it is time in seconds. -
mode
protected final int[] mode1=upward -1=downward 0=zero 2=timed -
size
protected final int size -
write
protected int write -
read
protected int read -
loop
protected int loop -
time
protected float time
-
-
Constructor Details
-
FloatPfg
public FloatPfg(float freq, int size)
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
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.
-
clear
public void clear() -
markLoop
public void markLoop()Must be called before the first add_inc(..)/add_timed(..). -
set
public void set(float out) -
clear
public void clear(float out) -
complete
protected void complete() -
complete2
protected void complete2() -
add_inc
public boolean add_inc(float v_inc, float v_fin) -
add_timed
public boolean add_timed(float duration, float v_fin) -
_add
protected boolean _add(float _inc, float _fin, int _mode)
-