@tonalis/music-dsl
    Preparing search index...

    Function isDiatonic

    • Determine if a chord encoding matches the target scale at the modal distance from the root.

      Gates on _root_is_diatonic first (if root not in scale → false immediately). Only then strips the scale to align with the chord encoding.

      Parameters

      • root: string

        Note value string ("C", "Ab", …)

      • scale: string

        Scale name string ("Major", "Minor", "HarmonicMinor")

      • chord: ChordModel

        Parsed ChordModel

      Returns boolean