lilypond-user
[Top][All Lists]
Advanced

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

Re: Hide the system start bar before a single context?


From: Pierre Perol-Schneider
Subject: Re: Hide the system start bar before a single context?
Date: Sun, 17 Aug 2014 21:55:53 +0200

Hi Trevor,

2014-08-17 19:56 GMT+02:00 Trevor Bača <address@hidden>:
 
But I really do appreciate seeing your thinking in these snippets; it's definitely helping me work through possibilities.

Well I know sometimes my codes are a little weird but this is how I work : if I have a job to finish I'll do my best to find a top output no matter how bad my code is. ;)

Anyway, here's another hacky one :
 
%%%%%
\version "2.19.11"

addStartBarUp =
  \markup
  \with-dimensions #'(0 . 0) #'(0 . 0) {
    \translate #'(-0.8 . 2.95)
    \override #'(thickness . 2)
    \draw-line #'(0 . -10)
    \translate #'(-.6 . 0)
    \musicglyph #"clefs.G"
}

addStartBarDown =
  \markup
  \with-dimensions #'(0 . 0) #'(0 . 0) {
    \translate #'(-0.8 . -.95)
    \override #'(thickness . 2)
    \draw-line #'(0 . 10)
    \translate #'(-.6 . 0)
    \musicglyph #"clefs.G"
}

someMusic = \relative c' {
  \repeat unfold 4 { c'4 d e f } \break
  \repeat unfold 4 { c,,,4 d e f }
}

\new Score \with {
    \omit SystemStartBar
} <<
    \new Staff {
      \someMusic
    }
    \new StaffGroup <<
        \new Staff \with {
            \override Clef.stencil = #(
                lambda (grob) (grob-interpret-markup grob addStartBarUp)
                )
        }
        {
            \someMusic
        }
        \new Staff \with {
            \override Clef.stencil = #(
                lambda (grob) (grob-interpret-markup grob addStartBarDown)
                )
        }
        {
           \someMusic
        }
    >>
>>
%%%%%


Cheers
Pierre

reply via email to

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