While tuplet brackets should not be printed for tuplets consisting
of only one note (e.g. a note with tremolo!), the tuplet number still
needs to be printed and can not be ignored.
Since the tuplet number also uses the dimensions calculated by the tuplet
bracket, the tuplet bracket at least needs to calculate it's theoretical
size, too, even though it will not be printed for single-note tuplets. The
check to kill zero-length tuplet brackets has thus been moved from
calc_positions to print in Tuplet_bracket.
Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
InstrumentSwitch was missing a setting for side-axis, which
caused a not very helpful warning "side-axis not set." on the
command line.
I now added the side-axis setting for the InstrumentSwitch and
also changed the warning message to include the type of grob
for which the setting is missing.
Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
MusicXML: Add support for longa and breve notes, fix error messages
-) Longa and breve notes have a duration_log < 0, so I can't use
1<<duration_log and write that out as the duration in lilypond.
Instead, I need to check for negative durations manually and
output \longa or \breve for these notes!
-) Update the musicxml regression test to also check longa and breve
notes (and their dotted versions)
-) Correctly import lilylib as ly (in particular, since the
error messages used ly.stderr_write already!!!!)
Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
Text crescendi starting at skips caused a
"Programmierfehler: Improbable offset for stencil: nan staff space"
error message and moved the text crescendi to the very beginning of the
staff.
Instead of grob->extent(...), use robust_relative_extent (grob, ...), which
also works with skips.
Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
Joe Neeman [Mon, 25 Feb 2008 19:36:33 +0000 (21:36 +0200)]
Fix 550.
Update a regression test that was broken by spacing changes.
Fix a corner case that would incorrectly choose a 3-page layout (with
nicer spacing) over a 2-page layout (with no page turns) with the page-turn
breaker and auto-first-page-number = ##t.
John Mandereau [Mon, 25 Feb 2008 14:11:08 +0000 (15:11 +0100)]
Merge branch 'master' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
* 'master' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond:
MusicXML: Better title for chordnames example
MusicXML: No need to keep really long test for percussion staves, use short one
MusicXML: Fix using lxml as XML parser
Remove a duplicate definition of system-start-text-interface.
A few fixes for cross-staff tuplet brackets.
Thinko: don't follow the beam on a kneed tuplet.
Small tweak for the alignment of a TrillSpanner.
Fine-tune alignment for TrillSpanners.
Fix 553.
Unfortunately, the default lxml.etree parser also includes comments
in its tree, which does not return a string as its tag, but a built-in
function Comment. Thus, I need to filter out all these comments.
It seems that lxml does not have any convenient way to check whether
a given node is a comment, so I convert it to its string representation
and compare with "<!--.*-->". Of course, this is a bad hack, but I haven't
found a better way yet.
John Mandereau [Sat, 23 Feb 2008 20:14:29 +0000 (21:14 +0100)]
Merge branch 'master' into lilypond/translation
* master:
lilypond-book: touch .texi output files already up to date
Thinko: automatic version in docs also requires macros.itexi
Always use Lily current version number in docs
Fix snippets compilation
Han-Wen Nienhuys [Sat, 23 Feb 2008 20:13:24 +0000 (17:13 -0300)]
Fix #580.
Acknowledge note-columns, and add a missing add_bound_item() call.
This makes trill and text spanners attach to notes (from the staff) if
possible, so objects in other staves will not influence their
attachments.
John Mandereau [Sat, 23 Feb 2008 11:06:30 +0000 (12:06 +0100)]
Fix snippets compilation
lys quoted verbatim in Texinfo must always end with a newline,
otherwise TeX fails when reading '@end verbatim' not at beginning of a
line. Maybe lilypond-book could add a newline if necessary when
writing @verbatim block, so we wouldn't have to worry about this any
more.
John Mandereau [Sat, 23 Feb 2008 08:11:50 +0000 (09:11 +0100)]
Merge branch 'master' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
* 'master' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond:
Update from Jay.
Updates from Trevor.
MusicXML: brackets (\startGroup and \stopGroup) need a special engraver add to Staff
MusicXML: Add possible \layout block, use autoBeaming=##f by default, allow manual beaming
MusicXML: The <attributes> tag can have multiple <staff-details> children
MusicXML: Add possible \layout block, use autoBeaming=##f by default, allow manual beaming
-) Added a musicexp.Layout class to print out a \layout block. It contains a dict
ContextName<=>ListOfEntries.
-) Added a global variable to hold the layout options, so whenever we encounter
the need for an entry in the \layout block, we can simply add the corresponding
setting.
-) By default, autoBeaming should be ##f (since MusicXML files contain full beaming
information), unless beaming should be ignored (e.g. for wrong musicxml files, like
the ones from Sibelius). I'm already using the Layout class for this.
-) Add command line option to ignore beaming information in the MusicXML file and
use lilypond's autoBeaming.
John Mandereau [Fri, 22 Feb 2008 14:05:00 +0000 (15:05 +0100)]
Merge branch 'master' of /home/lilycvs/git/lily/
* 'master' of /home/lilycvs/git/lily/:
Update from Jay.
MusicXML: If we use UTF-8, I also need to specify this in the XML head
MusicXML: Use UTF-8 encoding on the test files
MusicXML: Setting global options before (and not after) using them might be a good idea...
MusicXML: Add a way to implement compatibility modes, ignore beams for Sibelius
LSR: update.