lilypond-user
[Top][All Lists]
Advanced

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

Removing staff sharp after a \stopStaff


From: Alexandre Ficagna
Subject: Removing staff sharp after a \stopStaff
Date: Fri, 7 Aug 2020 11:37:26 -0300

Hi there

I'm having trouble trying to let the cropped staff ends right after the notes.
There's staff lines continues a bit after (probably due to the alignment with the notes of the staff below).
What could solve this and cut the up right after the notes?


%Definitions
circa= \markup { \teeny "I" }
circd= \markup { \teeny "II" }
circg= \markup { \teeny "III" }
circc= \markup { \teeny "IV" }

\score {
  \new Staff = "notas" \with {
    \remove Time_signature_engraver
  }
  \relative c { %--futura II?
    \override Score.Stem.stencil = ##f
    \override Score.Flag.stencil = ##f
   
    \time 6/4
    \clef F
   
    a4_\markup { \hspace #-2 \dynamic p \circa}^\markup { \hspace #-5 \bold "Ad lib." }
    <<
      {
\oneVoice
b-4_\circd d-2_\circg f-1_\circc r e-4_\circg
d_\circd fis-4_\circa a-2_\circd r
c-1 a-4
g, b-4 r e-2 g-1 e-4

\time 7/4
c r e-4 a-2 d-1 r b-4
\bar "|."

      }
      \new Staff = "harmonicos" \with {
alignAboveContext = #"notas"
\remove "Time_signature_engraver"
\remove "Bar_engraver"
fontSize = #-3
\override StaffSymbol.staff-space = #(magstep -3)
\RemoveAllEmptyStaves
      }
      \relative c' {
\oneVoice
 \clef G fis4 \omit Clef d \stopStaff s s \startStaff b \stopStaff
s \startStaff cis' a \stopStaff s s \startStaff e \stopStaff
s \startStaff fis \stopStaff s s \startStaff d \stopStaff s
s s s \startStaff a' \stopStaff s s \startStaff fis \stopStaff

      }
    >>
   
  }
}

%%%PAPER definitions

\paper {
  left-margin = 20\mm
  bottom-margin = 15\mm
  tagline = ##f
  print-first-page-number = ##f
}

%%%LAYOUT definitons

\layout {
  \context {
    \Staff
    \override Beam #'breakable = ##t
  }
  \context { \Staff
    \override BarLine #'hair-thickness = #0.5
    \override VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 5)
}
  \context { \Score
    proportionalNotationDuration = #(ly:make-moment 1/6)
%\override SpacingSpanner.uniform-stretching = ##t
    \override Flag.stencil = #modern-straight-flag
  }
}

Alexandre

Attachment: test.ly
Description: Text Data

Attachment: test.pdf
Description: Adobe PDF document


reply via email to

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