On 07.09.2018 03:17, Simon Albrecht wrote:
Hello everybody,

here’s two suggestions for the LSR snippets dealing with an initial clef change before the first note of a piece:

#956 <http://lsr.di.unimi.it/LSR/Item?id=956> works with a hidden grace note; this creates an unsightly gap that can be avoided by using a grace-timed spacer rest instead of the hidden note and repositioning clef and first note column thus:

Apologies, there were a number of things wrong with the version that I posted; here’s a better one:

%%%%%%%%%%%%%%%
\relative c' {
  \key b \major
  %%  Start with a bass clef:
  \clef bass
  %%  Use a grace-timed spacer to separate the two clefs:
  %%  (remember to also put this in all other
  %%  parallel music expressions to avoid issue 34!)
  \grace s1
  %%  Adjust the spacing:
  \once\override Staff.Clef.extra-offset = #'(3 . 0)
  \once\override NoteColumn.X-offset = 5
  %%  Switch to treble clef:
  \clef treble
  c4 c c c | c1
}
%%%%%%%%%%%%%%

Best, Simon

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to