Universal Music Theory Library - v0.12.0
    Preparing search index...

    Function findScalesForNotes

    • Returns the scales of SCALE_PATTERNS, on every root, that contain all the given notes, ranked: root on the tonic first, then by tier (common scales before other families and regional collections), then by fewer notes added to the set. The chromatic scale, which holds any set, comes last on every root. Aliases of one pattern are one result. Roots take the letter of a given note when one has that pitch class. Other tunings are read by the nearest 12-TET pitch class.

      Parameters

      Returns ScaleMatch[]

      findScalesForNotes(['C4', 'E4', 'G4', 'Bb4'].map(n => parseNote(n)))[0].name // 'C mixolydian'