[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug supposed with grace notes in pickup-bars
From: |
Reinhold Kainhofer |
Subject: |
Re: Bug supposed with grace notes in pickup-bars |
Date: |
Tue, 28 Apr 2009 16:39:44 +0200 |
User-agent: |
KMail/1.11.2 (Linux/2.6.27-14-generic; KDE/4.2.2; i686; ; ) |
On Dienstag, 28. April 2009 15:44:36 Graham Percival wrote:
> On Tue, Apr 28, 2009 at 06:34:04AM -0700, grisu_76 wrote:
> > P.S.: Don't be upset for posting the whole example - I am convinced that
> > it is necessary to get the whole problem
>
> I'm not. At the very least, you can get rid of three instruments.
> 99% of bugs can be demonstrated in less than 5 lines of code (not
> counting } lines), and I'm not convinced that this bug is one of
> the remaining 1%.
>
> Please try to shorten it and re-send it.
Okay, here's your 5-line snippet:
%%%%%%%%%%%%% BEGIN
global = { \time 6/8 \key es \major
% \partial 8*3 \grace {s8}
}
ViolineEins = \relative c'{ \partial 8*3 \grace {d8} c8 d e }
\score {
\new Staff { << \global \ViolineEins >> }
}
%%%%%%%%%%%%% END
Apparently the problem is << \global \ViolineEins >>, which means that two
parallel voices are generate (\global is the contents of the first,
\ViolineEins is the content of the second)! Now, the probelm boils down to the
usual problem of grace notes and parallel voices: the \global does not have
the \grace{s8}, so the timing is wrong and things are messed up.
If you add the \partial 8*3 \grace{s8} to the end of the definition of global,
everything works as expected.
The proper solution is to remove the << and >> from the \new Staff, since
there is no need to have them in parallel.
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