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: Karlin High
Subject: Re: How to auto print empty measures?
Date: Sat, 29 Dec 2018 13:29:33 -0600
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3

On 12/29/2018 1:13 PM, Karlin High wrote:
Or how about the solution David Kastrup wrote

And then combine with Aaron Hill's approach, allowing an autofilled spacer rest staff to simultaneously contain additional music.

% BEGIN
\version "2.18.2"
onepart = \repeat unfold 40 { c'4 }
twopart = { c' e' g' }
% Generate spacer rests equal to length of music variable
filler = #(ly:music-compress #{ s1 #} (ly:music-length onepart))
  <<
    \new Staff { \onepart }
        \new Staff { << \twopart \\ \filler >> }
  >>
% END
--
Karlin High
Missouri, USA



reply via email to

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