Jump to content

Displaying complex chords: Difference between revisions

From LilyPond wiki
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
<lilypond version="2.24">
<lilypond version="2.24">
fixA = {
fixA = {
   \once \override Stem.length = #11
   \once \override Stem.length = #12
}
}


Line 21: Line 21:
</lilypond>
</lilypond>


[[Category:Chords]]
[[Category:Simultaneous notes]]
[[Category:Simultaneous notes]]
[[Category:Chords]]
[[Category:Workaround]]
[[Category:Workaround]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 07:26, 5 December 2025

Here is a way to display a chord where the same note is played twice with different accidentals.

\version "2.24"

fixA = {
  \once \override Stem.length = #12
}

fixB = {
  \once \override NoteHead.X-offset = #1.7
  \once \override Stem.length = #7
  \once \override Stem.rotation = #'(45 0 0)
  \once \override Stem.extra-offset = #'(-0.1 . -0.2)
  \once \override Flag.style = #'no-flag
  \once \override Accidental.extra-offset = #'(4 . -.1)
}


\relative c' {
  << { \fixA <b d!>8 } \\ { \voiceThree \fixB dis } >> s
}