Class ARIXP0SampleState
java.lang.Object
com.io7m.aradine.instrument.sampler_xp0.internal.ARIXP0SampleState
The playback state of a sample.
-
Constructor Summary
ConstructorsConstructorDescriptionARIXP0SampleState(ARI1SampleMapEntryType inSample, double inVelocity) The playback state of a sample. -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate(double pitchBend, double[] frame) Evaluate the sample.intlongposition()doublevoidsetLoopPoint(double newLoopPoint) Set the loop point.voidsetPitchBendRange(int newSemitones) Set the pitch bend range.doublevelocity()
-
Constructor Details
-
ARIXP0SampleState
The playback state of a sample.- Parameters:
inSample- The sample map entryinVelocity- The velocity
-
-
Method Details
-
setPitchBendRange
public void setPitchBendRange(int newSemitones) Set the pitch bend range.- Parameters:
newSemitones- The semitones range
-
pitchBendRange
public int pitchBendRange()- Returns:
- The current pitch bend range
-
setLoopPoint
public void setLoopPoint(double newLoopPoint) Set the loop point.- Parameters:
newLoopPoint- The loop point
-
evaluate
public void evaluate(double pitchBend, double[] frame) Evaluate the sample.- Parameters:
pitchBend- The current pitch bend valueframe- The output frame
-
velocity
public double velocity()- Returns:
- The velocity
-
position
public long position()- Returns:
- The most recent playback position
-
positionReal
public double positionReal()- Returns:
- The most recent playback position
-