abl_link_phase_at_time method

double abl_link_phase_at_time(
  1. abl_link_session_state session_state,
  2. int time,
  3. double quantum
)

! @brief: Get the session phase at the given time for the given quantum.

@discussion: The result is in the interval [0, quantum). The result is equivalent to fmod(beatAtTime(t, q), q) for non-negative beat values. This function is convenient if the client application is only interested in the phase and not the beat magnitude. Also, unlike fmod, it handles negative beat values correctly.

Implementation

double abl_link_phase_at_time(
  abl_link_session_state session_state,
  int time,
  double quantum,
) {
  return _abl_link_phase_at_time(
    session_state,
    time,
    quantum,
  );
}