@libraz/libcantus - v1.1.0
    Preparing search index...

    Function ticksToBeats

    • Convert MIDI ticks to quarter-note beats.

      Parameters

      • ticks: number

        Whole tick count, negative before the first downbeat.

      • ppq: number

        Pulses (ticks) per quarter note, e.g. 96, 480, or 960.

      Returns number

      The position or length in quarter-note beats.

      If ticks is not an integer or ppq is not a positive integer.

      import { ticksToBeats } from '@libraz/libcantus';
      ticksToBeats(720, 480); // 1.5