* lily/parser.yy:
retrieve duration factor from duration identifier and apply it to
copied duration
* input/regression (new file):
add regtest
--- /dev/null
+\version "2.13.18"
+
+\header {
+ texidoc = "The compression factor of a duration identifier is
+correctly accounted for by the parser."
+}
+
+% looks like a whole note, has duration of half note
+wholeHalved = #(ly:make-duration 0 0 1 2)
+
+
+\displayMusic \relative c' {
+ c\wholeHalved c |
+ c\wholeHalved. c4 |
+}
| DURATION_IDENTIFIER dots {
Duration *d = unsmob_duration ($1);
Duration k (d->duration_log (), d->dot_count () + $2);
+ k = k.compressed (d->factor ());
*d = k;
$$ = $1;
}