Arabic Maqām Network - TypeScript Library Documentation - v0.1.0
    Preparing search index...

    Function calculateCentsDeviationWithReferenceNote

    • Calculates cents deviation with explicit reference note determination.

      This function extends the basic cents deviation calculation by determining the exact reference note based on the English note name, providing both the deviation value and the reference note name for clarity.

      Parameters

      • currentMidiNumber: number

        The current MIDI note number (can be fractional)

      • currentCents: string

        The current cents value as a string

      • startingMidiNumber: number

        The starting/reference MIDI note number

      • OptionalcurrentNoteName: string

        Optional current note name for reference determination

      • OptionalstartingNoteName: string

        Optional starting note name

      Returns { deviation: number; referenceNoteName: string }

      Object with deviation value and reference note name