|
From: | Flaming Hakama by Elaine |
Subject: | Re: compress full bar rests |
Date: | Fri, 9 Oct 2015 16:18:03 -0700 |
Thanks for the help, everyone who replied. Looks like a simple solution.
The purpose of the globals treatment is to consolidate any score-wide content, like double barlines, repeats, signatures, rehearsal marks, coda and D.S. markings, tempi, etc.
Admiyyedly, in this minimal example, that utility is not at all obvious. But that's the framework in which I was having the problem.
On Oct 9, 2015 3:41 PM, "Thomas Morley" <address@hidden>
> A sequence of single SkipEvents like { s1 s1 } will not be compressed.
> You need to write { s1*2 }.
> See the following tiny examples:
>
> \new Staff <<
> { s1 s1 }
> { \compressFullBarRests R1*2 }
> >>
>
> \new Staff <<
> \displayMusic { s1*2 }
> { \compressFullBarRests R1*2 }
> >>
>
>
> Your example cold read:
>
> \version "2.19.28"
>
> structure = \relative c {
> \compressFullBarRests
> \override MultiMeasureRest.expand-limit = #2
> \override Score.RehearsalMark.self-alignment-X = #LEFT
> \mark "Globally compressed"
> s1*5 \bar "||"
> }
>
> globals = #(define-music-function (parser location mus) (ly:music?)
> #{ << \structure \relative { $mus } >> #})
>
> melody = \relative c'' {
> c1 | R1*4 ||
> }
>
> melodyGlobal = \globals { \melody }
>
> <<
> \new Staff {
> \melodyGlobal
> }
> >>
>
> HTH,
> Harm
[Prev in Thread] | Current Thread | [Next in Thread] |