Names a 12-TET step (A4 = 0) as it is written in keySymbol ("E major", "C minor",
"D dorian"). The key's notes take the scale's letters (G# in E major, E# in F# major,
F## in G# minor). The rest follow the harmonic chromatic scale (in C major: Db, Eb,
F#, Ab, Bb; in A minor: Bb, C#, D#, F#, G#), unless that needs a double accidental and
the neighbouring letter needs fewer (A natural in Db major, not Bbb). An unknown key
falls back to flats.
Parameters
stepsFromA4: number
keySymbol: string
Returns string
Name with octave; the octave follows the letter (B#3 is the pitch of C4).
Names a 12-TET step (A4 = 0) as it is written in
keySymbol("E major", "C minor", "D dorian"). The key's notes take the scale's letters (G# in E major, E# in F# major, F## in G# minor). The rest follow the harmonic chromatic scale (in C major: Db, Eb, F#, Ab, Bb; in A minor: Bb, C#, D#, F#, G#), unless that needs a double accidental and the neighbouring letter needs fewer (A natural in Db major, not Bbb). An unknown key falls back to flats.