Class ARIXP0SampleState

java.lang.Object
com.io7m.aradine.instrument.sampler_xp0.internal.ARIXP0SampleState

public final class ARIXP0SampleState extends Object
The playback state of a sample.
  • Constructor Details

    • ARIXP0SampleState

      public ARIXP0SampleState(ARI1SampleMapEntryType inSample, double inVelocity)
      The playback state of a sample.
      Parameters:
      inSample - The sample map entry
      inVelocity - 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 value
      frame - 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