Package eu.bandm.sighkn
Class LASamplePlayer
java.lang.Object
eu.bandm.sighkn.LASamplePlayer
A "look-ahead" player knows the duration of a sound event when it starts.
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
protected float
static final float
A partial loop execution of a length below this fraction will be omitted; above it will be replaced by a complete execution.protected FloatSamplePlayer
protected SampleRegister
protected SigSequencer
protected Function<FunctionalPitch,
Float> -
Constructor Summary
ConstructorDescriptionLASamplePlayer
(float freq, SigSequencer seq, SampleRegister reg, Function<FunctionalPitch, Float> tuning, FloatSamplePlayer player) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
startNote
(float when, float duration, FunctionalPitch pitch)
-
Field Details
-
freq
protected float freq -
seq
-
reg
-
tuning
-
player
-
filled
protected float filled -
partial_loop_threshold
public static final float partial_loop_thresholdA partial loop execution of a length below this fraction will be omitted; above it will be replaced by a complete execution. The resulting shift will be compensated with the next event.- See Also:
-
-
Constructor Details
-
LASamplePlayer
public LASamplePlayer(float freq, SigSequencer seq, SampleRegister reg, Function<FunctionalPitch, Float> tuning, FloatSamplePlayer player)
-
-
Method Details
-
startNote
-