lilypond-user
[Top][All Lists]
Advanced

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

Re: Compress "empty" Bars when using a separate variable for structure


From: Pierre Perol-Schneider
Subject: Re: Compress "empty" Bars when using a separate variable for structure
Date: Mon, 27 Jan 2020 17:48:56 +0100

Hi,
Try:
struct = {
  \key c \major
  \tempo 4 = 140
  s1*3 %<= instead!
  \key g \major
}
Cheers,
Pierre

Le lun. 27 janv. 2020 à 17:43, <address@hidden> a écrit :

Hello All,

please consider the following snippet:

 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.19.83"

 

music = \relative c'{

  \compressFullBarRests

  R1*3 |

  \repeat unfold 2 {c8 d e fis g a b c}

}

 

struct = {

  \key c \major

  \tempo 4 = 140

  s1 |

  s1 |

  s1 |

  \key g \major

 

}

 

\score {\new Staff {<< \music \struct>>}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 

I’m using a separate variable for structural elements like time-signature, etc. which prevents lilypond from compressing the full-bar rests.

What do I have to change so that the three rests at the beginning get merged like they would if I removed the struct-variable?

 

Thanks


reply via email to

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