Fix 524 pitched trill losing accidental.
commit3fe585f8b8e8402f78abe6e21f25d99b70a3639b
authorNeil Puttock <n.puttock@gmail.com>
Fri, 4 Jul 2008 22:32:09 +0000 (4 23:32 +0100)
committerNeil Puttock <n.puttock@gmail.com>
Sat, 5 Jul 2008 00:05:06 +0000 (5 01:05 +0100)
treeb3dc3d8fff2fafef119be808635201fec4972040
parent57149ead5101efed1c286e6cb20665366c878044
Fix 524 pitched trill losing accidental.

- check localKeySignature more thoroughly when deciding whether
to print an accidental.  This includes checks for alteration and
measure number.
- print accidental if forced.
- move get_bar_number () from accidental-engraver.cc to context.cc
so that pitched-trill-engraver.cc can also use it.
- check secondary note events for `forced-accidental' property and pass to
engraver via trill-span-event if set.
- prevent accidental-engraver.cc setting `forced' property on non-existent
accidentals.
- add regression tests for forced-accidental and consecutive pitched trills.
input/regression/trill-spanner-pitched-consecutive.ly [new file with mode: 0644]
input/regression/trill-spanner-pitched-forced.ly [new file with mode: 0644]
lily/accidental-engraver.cc
lily/context.cc
lily/include/context.hh
lily/pitched-trill-engraver.cc
ly/music-functions-init.ly