Interface ARI1InstrumentContextTimeType

All Known Subinterfaces:
ARI1InstrumentContextType

public interface ARI1InstrumentContextTimeType
Time services.
  • Method Summary

    Modifier and Type
    Method
    Description
    default double
    Convert the given frame count to a duration in milliseconds based on the current sample rate.
    double
     
    long
    timeMillisecondsToFrames(double milliseconds)
    Convert the given duration in milliseconds to the nearest equivalent number of frames at the current sample rate.
  • Method Details

    • timeMillisecondsPerFrame

      double timeMillisecondsPerFrame()
      Returns:
      The number of milliseconds in a single frame at the current sample rate
    • timeMillisecondsToFrames

      long timeMillisecondsToFrames(double milliseconds)
      Convert the given duration in milliseconds to the nearest equivalent number of frames at the current sample rate.
      Parameters:
      milliseconds - The millisecond duration
      Returns:
      The number of frames
    • timeFramesToMilliseconds

      default double timeFramesToMilliseconds(long frames)
      Convert the given frame count to a duration in milliseconds based on the current sample rate.
      Parameters:
      frames - The frame count
      Returns:
      The duration of the frames in milliseconds