Janek,

I also experimented with a context statement that matched the first
documentation page, but I couldn't get it to work (see attached).

David


On 12/7/2013 1:45 AM, Janek Warchoł wrote:
> 2013/12/7 David Bolton <[email protected]>:
>> My goal is to reduce the horizontal spacing so that I fit four measures
>> per system instead of two.
>>
>> Unfortunately I can't work out where the override statement is supposed
>> to go. I've tried mimicking the locations shown in the documentation but
>> they all give errors for my score.
>> http://lilypond.org/doc/v2.17/Documentation/notation/changing-spacing
>> http://lilypond.org/doc/v2.16/Documentation/notation/the-override-command
>>
>> See attached for my score.
> It didn't work because you haven't specified appropriate context -
> SpacingSpanner lives in the Score context.
>
>

\version "2.14.0"

tune = \relative c' {
  \clef treble
  \key c \major
  \time 8/1

  % prevent bar number display on the second line
  \set Score.barNumberVisibility = #(every-nth-bar-number-visible 100)

  d1^\markup{\large{\bold{1. Dorian}}}_\markup{\large{\bold{f}}} e f g a b_\markup{\large{*}} c d
  e,^\markup{\large{\bold{3. Phrygian}}}_\markup{\large{\bold{f}}} f g a b c d e
  f,^\markup{\large{\bold{5. Lydian}}}_\markup{\large{\bold{f}}} g a b_\markup{\large{*}} c d e f
  g,^\markup{\large{\bold{7. Mixolydian}}}_\markup{\large{\bold{f}}} a b c d e f g
  \break
  a,,^\markup{\large{\bold{2. Hypodorian}}} b_\markup{\large{*}} c d_\markup{\large{\bold{f}}} e f g a
  b,^\markup{\large{\bold{4. Hypophrygian}}} c d e_\markup{\large{\bold{f}}} f g a b
  c,^\markup{\large{\bold{6. Hypolydian}}} d e f_\markup{\large{\bold{f}}} g a b_\markup{\large{*}} c
  d,^\markup{\large{\bold{8. Hypomixolydian}}} e f g_\markup{\large{\bold{f}}} a b c d
}

#(set-default-paper-size "letter" 'landscape)
#(set-global-staff-size 22)

\score {
  \new Staff \with { \remove Time_signature_engraver} { \tune }
  \layout { 
    \context {
      \Score
      \override SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/2)
    }
  }
}
\markup{\large{* Under certain conditions, the B is flatted in modes 1, 2, 5, and 6.}}

\paper { indent = 0\mm }
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to