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

    Function spellByLetter

    • Names a 12-TET step using the letter degree positions above rootLetter (degree 0 = the root letter itself), with whatever accidentals that letter needs. The octave number follows the letter, so B#3 and C4 are the same pitch.

      Parameters

      • stepsFromA4: number
      • rootLetter: string
      • degree: number

      Returns string | null

      Full name with octave (e.g. "E#4", "Cb5"), or null when the letter would need more than two accidentals.