lilypond-user
[Top][All Lists]
Advanced

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

Re: Text *in* score - Stopped staves - Horizontal spacing


From: Kieren MacMillan
Subject: Re: Text *in* score - Stopped staves - Horizontal spacing
Date: Tue, 7 Mar 2017 17:02:51 -0500

Hi Pierre-Luc,

Didn’t see this before…

> I have this text that I hope to fit in between stopped staves.
> Obviously, this can only work by stopping staves from the top of the score.

“Obviously”?? There are many ways to skin a Lilypond cat…  ;)
This one isn’t great, but it works without stopping staves:

\version "2.19.54"

someText = \markup \with-dimensions #empty-interval #empty-interval \whiteout 
\pad-x #2 {
  \override #(cons 'line-width 40)
  \justify {
    \fontsize #-4 {
      \underline \larger \smallCaps {
        "Narrator :"
      }
      Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
      Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat.
      Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur.
      Excepteur sint occaecat cupidatat non proident, sunt in culpa
qui officia deserunt mollit anim id est laborum.
    }
  }
}

songStructure = {
  s1 |
  \bar "||"
  s |
  \bar "||"
  \key bes \major
  s |
  \bar "|."
}

someMusic = {
  f'8 r r4 r2 |
  s1 |
  f'8 r r4 r2 |
}

staffRester = {
  s1 |
  \tweak MultiMeasureRest.minimum-length #45 R1\fermataMarkup
  s1 |
}

staffI = \new Staff \with {
} \new Voice <<
  \songStructure
  \someMusic
  { s1 s-\tweak extra-offset #'(-2.9 . 3.5) -\someText }
>>

staffII = \new Staff \with {
} \new Voice <<
  \songStructure
  \someMusic
>>

staffIII = \new Staff \with {
} \new Voice <<
  \songStructure
  \someMusic
>>

piano = \new PianoStaff <<
  \new Staff \with {
  } \new Voice << \songStructure \someMusic \staffRester >>
  \new Staff \with {
  } \new Voice << \songStructure \someMusic \staffRester >>
>>

scoreContent = <<
  \staffI
  \staffII
  \staffIII
  \piano
>>

\score {
  \scoreContent
  \layout {}
}

________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden




reply via email to

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