lilypond-user
[Top][All Lists]
Advanced

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

Re: Placing clef change *after* bar line


From: -Eluze
Subject: Re: Placing clef change *after* bar line
Date: Tue, 28 Feb 2012 09:06:06 -0800 (PST)


lilypond-7 wrote:
> 
> Most times, placing a clef change before a bar line is
> appropriate.  When combined with repeated sections though,
> sometimes it is clearer to place a clef change after the bar
> line.  I read through the LSR for everything 'clef' but didn't
> find anything on this topic.
> 
> The best workaround (that I've found), while limited, involves
> forcing a line break at the point of the clef change and setting
> the end-of-line-invisible property.
> 
> When that's not possible or desireable, I kludged up this, but
> it's a gross hack looking at the code, and the spacing isn't very
> good, looking at the output.  Is there a better way to tell
> lilypond to put the new clef after the barline instead of before?
> 

looking through the  http://lsr.dsi.unimi.it/LSR/ LSR  and searching for
clef and after I found a few examples (similar to your approach):

from one of them I adapted the idea of adding an empty measure into which
one can place the clef. probably the midi output will not sound correct.

\relative {
  \key e \major
  \repeat volta 2 {
    c1
    c1
  }
  \once \override Score.TimeSignature #'stencil = ##f
  \time 1/128
  \skip 128
  \bar ""
  \noBreak
  \once \override Score.TimeSignature #'stencil = ##f
  \time 4/4
  \once \override Staff.Clef #'extra-offset = #'(-.5 . 0)
  \clef bass
  c,1
  c
}

choosing a longer duration for the extra measure makes it larger. if the
result isn't satisfying yet you can also play around with extra-offset.

hth
Eluze
-- 
View this message in context: 
http://old.nabble.com/Placing-clef-change-*after*-bar-line-tp33404234p33408170.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.




reply via email to

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