]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/chordchanges-for-fretboards.ly
Imported Upstream version 2.14.2
[lilypond.git] / Documentation / snippets / new / chordchanges-for-fretboards.ly
diff --git a/Documentation/snippets/new/chordchanges-for-fretboards.ly b/Documentation/snippets/new/chordchanges-for-fretboards.ly
new file mode 100644 (file)
index 0000000..e8e8236
--- /dev/null
@@ -0,0 +1,23 @@
+\version "2.14.0"
+
+\header {
+  lsrtags = "fretted-strings"
+  texidoc = "FretBoards can be set to display only when the chord changes
+or at the beginning of a new line."
+  doctitle = "chordChanges for FretBoards"
+}
+
+\include "predefined-guitar-fretboards.ly"
+
+myChords = \chordmode {
+  c1 c1 \break
+  \set chordChanges = ##t
+  c1 c1 \break
+  c1 c1 \break
+}
+
+<<
+  \new ChordNames { \myChords }
+  \new FretBoards { \myChords }
+  \new Staff { \myChords }
+>>