lilypond-user
[Top][All Lists]
Advanced

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

Re: Reheaseals with irregular bars


From: Reinhold Kainhofer
Subject: Re: Reheaseals with irregular bars
Date: Mon, 29 Oct 2012 12:14:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121017 Thunderbird/16.0.1

On 2012-10-28 21:35, Jacques Menu wrote:
Hello folks,

I've been using Lilypond for some time, but Beethoven's Trio X für
Klavier, Flöte und Fagott causes me much trouble : "\partial" is not
usable inside a part, and Thema andante con variazioni contains tricky
rehearsals, like:



After fighting a lot with the problem, I found:

partialInline = #(define-music-function
(parser location nom den mus)
(integer? integer? ly:music?)
#{
\set Score.measurePosition = #(ly:make-moment (- $nom) $den)

You don't want (- $nom) here, since that might skip one measure!
In your case you want to set the measure position at the begin of the second volta to #(ly:make-moment 0 8), if you want the second volta to have the same bar number as the first.

If you want the second volta to have the barnumber of the first volta + 1, then I would try to set the measure position at the end of the first volta to #(ly:make-moment 4 8). I haven't tried it out, but I think that should work.


I always run into messages such as the following (hence my bar numbers
are wrong) :

Beethoven_WoO37_Fagott_ThemaAndanteConVariazioni.ly:493:16: warning:
Barcheck failed got 79 expect 81

because I don't know how to specify the correct "size" for the partial
bars involved (by the way, bar number 64 is already wrong):

I suppose bar 25 is already wrong, right?



Here is the code I use:
[...]
\tempoMark #3.0 #"Var. V"

% -------------------------------------------------------------------------
\repeat volta 2
% -------------------------------------------------------------------------
{

\partialInline #1 #8

Here you don't want to set the measure position to #(ly:make-moment (- 1) 8) of measure 79, since you are already in measure 79. If you set it to -1/8, like you do, then this means after the next eighth note measure 79 will start...

You rather want to set the measure position to 3/8 of bar 79, which means that after the eight rest measure 80 will start...


The only reason why \partial sets the measure position to -1/8 is that the first full bar is supposed to be measure 1. In all other cases (i.e. inside some piece), you don't ever want to set the measure position to a negative value, as that will skip a measure in the measure count.

Cheers,
Reinhold

--
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://www.kainhofer.com
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * Edition Kainhofer, Music Publisher, http://www.edition-kainhofer.com



reply via email to

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