[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug - Lilypond hangs forever if too many prime tuplets are used
From: |
Simon Albrecht |
Subject: |
Re: Bug - Lilypond hangs forever if too many prime tuplets are used |
Date: |
Sun, 13 Nov 2016 16:51:45 +0100 |
Hello McLaren,
first: code formatting is important. On your own, you can do whatever
you like, but as soon as you share code, please adhere to at least the
following conventions:
– { } << >> _must_ be surrounded with spaces, even if they are not
technically necessary.
– Use correct indentation (by 2 spaces) and line breaks to clarify
nesting of braces of any kind.
– Don’t put too much code on one line. Often this means one bar per
line, in this case there should definitely be only _one_ tuplet per
line; groupings can be achieved by empty lines _where sensible_.
Also, your example has many superfluous {} and <<>>, and you should look
that your e-mail client doesn’t mess up comments by inserting line
breaks. When in doubt, give code as attachment – it’s safest. The
following is basically the same code, but much better readable:
%%%%%%%%%%%%%%%%%%%
\version "2.19.49"
\new Staff \relative c'' {
\clef "treble"
\tuplet 53/37 r4
\tuplet 37/29 c8
\tuplet 3/2 d8
\tuplet 5/3 e8
\tuplet 11/9 b4.
\tuplet 17/13 g8
\tuplet 7/5 r4
\tuplet 13/8 a8
\tuplet 8/5 b8
\tuplet 12/7 c4
\tuplet 23/19 r8
\tuplet 47/37 e8
\tuplet 43/29 f4
\tuplet 29/17 { d8[ e g] }
\tuplet 53/47 c,4.
\tuplet 61/37 r4
\tuplet 17/14 e8
\tuplet 23/18 f8
\tuplet 17/19 d8
% To get the bug, uncomment the next line. Lilypond gives no error
message,
% but hangs permanently with message "Interpreting music..."
\tuplet 11/13 r8
}
%%%%%%%%%%%%%%%%%
Now, the only thing I changed was omitting the last tuplet, which is
_not_ necessary to trigger the bug, at least not on my system. Which
confirms my suspicion that you don’t seem to have been careful enough in
providing a _minimal_ example. These are mandatory on the bug list, so
please recheck if you can find _any_ kind of reduction. That example is
way too verbose for my taste, try if you can reduce it e.g. using
\repeat unfold.
Best regards,
Simon
On 13.11.2016 07:01, mclaren wrote:
\version "2.19.49"
<<
\new Staff {
\clef "treble"
\relative c''
{
\tuplet 53/37{r4} \tuplet 37/29{c8} \tuplet 3/2{d8} \tuplet 5/3 {e8}
\tuplet 11/9{b4.} \tuplet 17/13{g8} \tuplet 7/5{r4} \tuplet 13/8{a8}
\tuplet 8/5{b8} \tuplet 12/7{c4} \tuplet 23/19{r8} \tuplet 47/37{e8}
\tuplet 43/29{f4} \tuplet 29/17{d8[ e g]} \tuplet 53/47{c,4.}
\tuplet 61/37{r4} \tuplet 17/14 {e8} \tuplet 23/18{f8} \tuplet 17/19{d8}
% To get the bug, uncomment the next line. Lilypond gives no error message,
but hangs permanently with message "Interpreting music..."
%\tuplet 11/13{r8} \tuplet 3/5{f8}
}
}
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Bug-Lilypond-hangs-forever-if-too-many-prime-tuplets-are-used-tp196554.html
Sent from the Bugs mailing list archive at Nabble.com.
_______________________________________________
bug-lilypond mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-lilypond