[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect bar numbers
From: |
Reinhold Kainhofer |
Subject: |
Re: Incorrect bar numbers |
Date: |
Tue, 25 Aug 2009 18:57:21 +0200 |
User-agent: |
KMail/1.11.4 (Linux/2.6.28-15-generic; KDE/4.2.4; i686; ; ) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Sonntag, 23. August 2009 17:46:39 schrieb Remco Poelstra:
> Hi,
>
> In the linked files, the bar numbered 118 is not 118, but 117. In this
> piece there is only an offset of 1, but I've created files where the
> offset could become larger. Bar 106 is numbered correct.
> The offending baris on the last line of music.
Hehe, yeah, that's a nice pitfall! To track down the problem (i.e. the exact
measure), it helps a lot to add \barNumberCheck #... every now and then (I use
it every 10 measures). This also helps locating the correct position in the
code when proof-reading the score.
Plus, what you can do is to temporarily print bar numbers for each measure:
\layout {
\context {
\Score
\override BarNumber #'break-visibility = #end-of-line-invisible
barNumberVisibility = #(every-nth-bar-number-visible 1)
}
}
You'll then see that the problem lies in measure 115. now let's look at the
code of this measure:
R2.*2 |
bes,_"cresc." | %<= this is the problematic measure 115
You have a rest, which lasts 2 x 2., i.e. two whole measures. You don't give a
new duration for the bes, so the bes, also lasts two whole measures (it looks
like a dotted half, but is scaled to twice the duration).
Effectively, your code is the same as:
R2.*2 |
bes,2.*2_"cresc." |
Which is not what you want!
So, remember to add explicit durations after multi-measure rests!
Cheers,
Reinhold
- --
- ------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
* Financial & Actuarial Math., Vienna Univ. of Technology, Austria
* http://www.fam.tuwien.ac.at/, DVR: 0005886
* LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFKlBfyTqjEwhXvPN0RAiAZAKDbLkoZknUjtJZQFcQuN9H8Q47g2wCeIDjw
22AGEvm+YlHPfOVuZ71KJqs=
=TL/8
-----END PGP SIGNATURE-----