Jump to content

Talk:Creating keyboard diagrams with chords or scales

Add topic
From LilyPond wiki
Latest comment: 16 February by 187.20.66.156 in topic An alternative way to create a keyboard diagram.

An alternative way to create a keyboard diagram.

[edit source]

441

An alternative solution, which can be used for alternative key layouts, which occurs in microtonalism and macrotonalism. For this, use the font KeyboardChordDiagramRegular-dPLx.ttf This font uses the characters w, W, b, B, | The lowercase letter is an unmarked key, uppercase is marked. w means white key, b a black key. A vertical bar draws a vertical line to separate immediately adjacent white keys.


#(ly:font-config-add-font "directory/sourceFile.ttf")

\score {

  \New Staff {

    c'1^\markup { \override #'(font-name . "Keyboard Chord Diagram")"WbwbW|" }

}

} 187.20.66.156 18:46, 16 February 2026 (UTC)Reply