Jump to content

Displaying complex chords: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
Here is a way to display a chord where the same note is played twice with different accidentals.
Here is a way to display a chord where the same note is played twice with different accidentals.


<lilypond version="2.24.0">
<lilypond version="2.24">
fixA = {
fixA = {
   \once \override Stem.length = #11
   \once \override Stem.length = #11

Revision as of 18:52, 16 November 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 = #11
}

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
}