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

    Function matchingListOfIntervals

    • Compares two arrays of intervals to determine if they represent the same sequence. This is useful for comparing interval patterns in scales, modes, or melodic sequences.

      Requirements:

      • Arrays must have the same length
      • Each corresponding pair of intervals must match according to matchingIntervals

      Parameters

      • firstIntervals: PitchClassInterval[]

        Array of intervals to compare

      • secondIntervals: PitchClassInterval[]

        Array of intervals to compare against

      • centsTolerance: number = 5

        Tolerance in cents for individual interval comparison (default: 5)

      Returns boolean

      true if all intervals in both arrays match in sequence, false otherwise