3

Here is the original engraving I am trying to reproduce

enter image description here

Here is my LilyPond code

\version "2.24.3"
\language "italiano"

cu = { \change Staff = "right" }
cd = { \change Staff = "left" }
hideNoteHead = \once {
    \omit Stem
    \omit Dots
    \omit Flag
    \hideNotes
    \override NoteColumn.ignore-collision = ##t
}

global = {
    \key reb \major
    \time 9/8
}

right = \new Staff = "right" {
    \global
    \relative do'' {
        r8 r8 s8 s4. <reb fa>
    }
}

left = \new Staff = "left" {
    \global
    \relative do' {
        r8
        <<
            \new Voice {
                \voiceOne
                <fa_4 lab_2> \sustainOn
                \oneVoice
                \cu <fa' lab>~ 4. \hideNoteHead fa4 s8 |
            }
            {
                \once \hideNotes <fa, lab>4~ 2. |
            }
        >>
    }
    <solb' la'>2. \sustainOff \sustainOn ~4.
}

\new PianoStaff {
    <<
        \right
        \left
    >>
}

And this is the result

enter image description here

The pedal sign overlaps with fingering. I guess I can try shifting the pedal sign, but can LilyPond make the pedal avoid fingering automatically?

1 Answer 1

3

The solution is to place fingering under hidden notes. I guess it has something to do with voices. Maybe a bug?

\version "2.24.3"
\language "italiano"

\language "italiano"

cu = { \change Staff = "right" }
cd = { \change Staff = "left" }
hideNoteHead = \once {
    \omit Stem
    \omit Dots
    \omit Flag
    \hideNotes
    \override NoteColumn.ignore-collision = ##t
}

global = {
    \key reb \major
    \time 9/8
}

right = \new Staff = "right" {
    \global
    \relative do'' {
        r8 r8 s8 s4. <reb fa>
    }
}

left = \new Staff = "left" {
    \global
    \relative do' {
        r8
        <<
            \new Voice {
                \voiceOne
                <fa lab> \sustainOn
                \oneVoice
                \cu <fa' lab>~ 4. \hideNoteHead fa4 s8 |
            }
            {
                \once \hideNotes <fa,_4 lab_2>4~ 2. |
            }
        >>
    }
    <solb' la'>2. \sustainOff \sustainOn ~4.
}

\new PianoStaff {
    <<
        \right
        \left
    >>
}

enter image description here

2
  • 1
    Yes, that is reasonable. The issue here is not the voices, but the staff change. I do not understand this fully yet, but I assume that due to the staff change somehow the fingerings are somehow assumed to belong to the other staff, and thus it is not considered for resolving collisions.
    – Lazy
    Commented Jul 5 at 23:46
  • Hmm... Even in the first example, the fingering precedes the staff change. Do you think it still somehow got associated with another staff?
    – facetus
    Commented Jul 6 at 1:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.