lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatically avoiding multi-measure rest creation


From: David Kastrup
Subject: Re: Automatically avoiding multi-measure rest creation
Date: Wed, 09 Sep 2015 09:32:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Dan Eble <address@hidden> writes:

> To fix a defect in \partcombine, I think I want the
> Multi_measure_rest_engraver to refrain from creating its grobs in
> measures that have interesting musical content.

If you basically have some "multi-measure rest whenever there is no
music" functionality, it would seem to make sense to give the end
spanner a proper event as well so that you don't have to write
<< \music #(multi-measure-rest-of-length music) >>
when you actually mean
\startMultiMeasure \music \stopMultiMeasure

At some point of time pretending the MMR to be anything but a spanner
for at least some use cases is not going to be worth the trouble.

> (The problem arises when within a Voice context one part is exchanged
> for another during a multi-measure rest.)
>
> If you think I will crash and burn trying to implement the following
> approach, please warn me.
>
> In Multi_measure_rest_engraver,
> * register for note and (sub-measure) rest events
> * track the maximum end moment of received note and rest events

That's what the Grob_pq_engraver is for.

> * refrain from creating a multi-measure rest grob until the
> interesting events have lapsed

sounds a lot like Frenching staves.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]