lilypond-user
[Top][All Lists]
Advanced

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

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


From: Aron Hanowski
Subject: AW: Compress "empty" Bars when using a separate variable for structure
Date: Mon, 27 Jan 2020 18:56:16 +0100

Wow, thank you.
I actually could have thought of that myself.

 

Von: Pierre Perol-Schneider <address@hidden>
Gesendet: Montag, 27. Januar 2020 17:49
An: address@hidden
Cc: lilypond-user <address@hidden>
Betreff: Re: Compress "empty" Bars when using a separate variable for structure

 

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]