Jump to content

Chord changes for fretboards: Difference between revisions

From LilyPond wiki
No edit summary
m New category
Line 21: Line 21:


[[Category:Fretted strings]]
[[Category:Fretted strings]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Revision as of 23:11, 21 November 2025

FretBoards can be set to display only when the chord changes or at the beginning of a new line.

\version "2.24"

\include "predefined-guitar-fretboards.ly"

\paper { tagline = ##f }

myChords = \chordmode {
  c1 c1 \break
  \set chordChanges = ##t
  c1 c1 \break
  c1 c1
}

<<
  \new ChordNames { \myChords }
  \new FretBoards { \myChords }
  \new Staff { \myChords }
>>