lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to move a clef horizontally


From: Stefan Thomas
Subject: how to move a clef horizontally
Date: Wed, 23 Dec 2020 15:24:47 +0100

Dear community,
I would like to know, how I can avoid the collision between the treble clef and the note b in the below quoted example:
%%%%%%%%% SNIP
\version "2.20.0"
global = { \key e \major \time 4/4 }
Up = { \change Staff="upper" \stemDown }
Down = { \change Staff="lower" \stemUp }
upper = {  
\clef "bass" \global
dis'4   e'4    
     
      \clef "treble" gis'4\!
      fis'8.   e'16 |
}
middle = {
 a,16  
        dis16  \Up a16    b16  
     \Down   a,16  
      e16  \Up  a16   b16    
  \Down  b,16    fis16  
  \Up    a16   b16  \Down   b,16
       dis16    \Up a16
      b16  
}
lower = {
fis,,4   e,4
      dis,4    b,,4  
}

lower = {
\global \clef "bass"
<< { \middle } \\ { \lower } >>
}

\score {
\new PianoStaff  = "Klavier"  \with { \override StaffGrouper.staff-staff-spacing.stretchability = #1 }
<<
\new Staff= "upper" { \upper }
  \new Staff = "lower" { \lower} >>
}
%%%%%%%%%%% END SNIPPET

Thank You all,
Stefan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]