lilypond-user
[Top][All Lists]
Advanced

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

Re: How to auto print empty measures?


From: David Kastrup
Subject: Re: How to auto print empty measures?
Date: Sat, 29 Dec 2018 21:45:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Kieren MacMillan <address@hidden> writes:

> Hi David,
>
>>> That’s only because you haven’t written the code to make Lilypond do
>>> it for you [and anyone else who wants such a feature]. Patches are
>>> always welcome!
>> 
>> The Completion_rest_engraver will do that in a variety of manners
>> (depending on the variables it uses to make its decisions).  It's not
>> all that popular outside of computer-generated music where barlines and
>> other metric boundaries are more of a coincidence and a help to the
>> human executioner rather than an integral part of the rhythm.
>
> Thanks for reminding me of its existence; I use neither Completion_*_engraver.
>
> Now:
>
> \version "2.19.80"
>
> \layout {
>   \context {
>     \Voice
>     \consists "Completion_rest_engraver"
>   }
> }
>
> {
>   \time 4/4
>   c'4
> }
>
> I believe Reggie would like the rest of that measure filled with rests (I’m 
> guessing a quarter rest and a half rest). 

Something like

\version "2.19.80"

\layout {
  \context {
    \Voice
    \remove "Rest_engraver"
    \consists "Completion_rest_engraver"
    completionUnit = #(ly:make-moment 1/2)
  }
}

{
  \time 4/4
  c'4
  r2.
}

It's not all that great, I'll agree.

-- 
David Kastrup



reply via email to

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