lilypond-user
[Top][All Lists]
Advanced

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

Re: Minimum padding after barlines for notes with accidentals?


From: Markus Schneider
Subject: Re: Minimum padding after barlines for notes with accidentals?
Date: Wed, 13 Sep 2006 23:17:53 +0200

Hello Rick, hello Kieren,

have a look - this might actually work with acceptable editing effort.
It's _almost_ fully automated. You only have to know your total amount of
bars. Of course, if the time-signature changes, this must be adjusted in the
accidentalSpacer variable also.

Cheers,
Markus

%%%
\version "2.9.17"

music = \relative c'' {
  cis4 dis e fis |
  f ges b bes |
  b,! cis a g |
  g? f fis c |
  cis' c d d
}

accidentalSpacer = {
  \repeat unfold 5 {
    \once \override Staff.AccidentalPlacement #'left-padding = #0.8
    s1 |
  }
}

\score {
  \new Staff <<
    \context Voice = "A" \music
    \context Voice = "A" \accidentalSpacer
  >>
  \layout { indent = 0 ragged-last = ##t }
}
%%%







reply via email to

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