]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/displaying-complex-chords.ly
resolve merge
[lilypond.git] / Documentation / snippets / new / displaying-complex-chords.ly
diff --git a/Documentation/snippets/new/displaying-complex-chords.ly b/Documentation/snippets/new/displaying-complex-chords.ly
new file mode 100644 (file)
index 0000000..f2426dc
--- /dev/null
@@ -0,0 +1,25 @@
+\version "2.14.0"
+
+\header {
+  lsrtags = "simultaneous-notes, chords"
+  texidoc = "
+Here is a way to display a chord where the same note is played twice
+with different accidentals.
+"
+  doctitle = "Displaying complex chords"
+}
+
+fixA = {
+  \once \override Stem #'length = #9
+}
+fixB = {
+  \once \override NoteHead #'X-offset = #1.7
+  \once \override Stem #'rotation = #'(45 0 0)
+  \once \override Stem #'extra-offset = #'(-0.2 . -0.2)
+  \once \override Stem #'flag-style = #'no-flag
+  \once \override Accidental #'extra-offset = #'(4 . 0)
+}
+
+\relative c' {
+  << { \fixA <b d!>8 } \\ { \voiceThree \fixB dis } >> s
+}