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

    Function matchingIntervals

    • Determines if two intervals are equivalent within a specified tolerance. Uses different comparison methods based on the original value type:

      • For fraction and decimal ratio types: Exact string comparison
      • For other types: Cents comparison within tolerance

      Parameters

      • firstInterval: PitchClassInterval

        First interval to compare

      • secondInterval: PitchClassInterval

        Second interval to compare

      • centsTolerance: number = 5

        Tolerance in cents for comparison (default: 5)

      Returns boolean

      true if the intervals match within the specified tolerance, false otherwise