On 12 August 2010 17:05, laurent <[email protected]> wrote:

> I found another solution, which is equivalent to a ossia, but now I have
> another worry:

This isn't really a suitable use for an ossia stave, since you can't
group the staves together with a brace.  You'd be better off creating
the second stave at the beginning of the score, hiding it until it's
required.

You can calculate the number of rests before the new stave's
introduced automatically via \tag and \removeWithTag, then it's just a
matter of using \RemoveEmptyStaves and setting 'remove-first.

> In this measure 136 to the end, I have a early next line blank.

That's a bug; see issue 471:
http://code.google.com/p/lilypond/issues/detail?id=471

Cheers,
Neil
\version "2.13.29"

\header {
  title = "La leçon de solfège"
  subtitle = "Choeur - Basses"
  composer = "Aymé KUNC"
  copyright = "bla bla bla"
  tagline = "bla bla"
}

tempoMark = {
  \once \override Score.RehearsalMark #'self-alignment-X = #LEFT
  \once \override Score.RehearsalMark #'break-align-symbols = #'(time-signature key-signature)
  \once \override Staff.TimeSignature #'break-align-anchor-alignment = #LEFT
  \mark \markup \bold "Animé"
}

global = {
  \tempoMark
  \key d \major
  \time 4/4
  \compressFullBarRests
  \override Hairpin #'to-barline = ##f
  \override MultiMeasureRest #'expand-limit = #2
  
}

Basses = \relative c {  
  \global
  \transposition c,
  
  R1*1\fermataMarkup \bar "||"
  R1*8
  R1*8
  R1*3
  R1*1
  R1*1
  d16\f e d cis d4~ d16 e d cis d4~
  d16 e d cis d a b cis d e fis g a b cis d
  e, fis e d e4~ e16 fis e d e4~
  e16 fis e d e b cis d e fis g a b cis d e
  a,8 r8 r4 r2
  a16\mf b a gis a b cis d g, a g fis g a b cis
  d8 r8 r4 r2
  d,16\f e d cis d e fis g a!\> b a g a b cis d\!
  b,8\p r8 r4 r8\pp b'16 ( a g a fis g 
  e8-.) b4.->~ b16\< g' fis g e^\markup { \italic { cresc. } } fis d e\!
  cis!8\f r8 r4 r8\pp cis'16 ( b a b gis a)
  fis8-. cis4.->~ cis16 a' gis_\markup { \italic { cresc. } }a fis gis e fis 
  dis8\f r8 r4 r8 dis'16\< (cis b cis ais b\! 
  gis8)-. e!->~ e2 e4->~
  e e8-.^\markup { \italic { dim. } }\> e-. e-. e-. e-. e-.\!
  R1*1
  r16\f cis dis e fis a gis fis e8 r8 r4\bar "||"
  R1*3
  r16\f fis gis a b cis d e\< d cis b a gis fis e d\!
  d'8\ff->-. cis->-. r4 r2 \bar "||"
  R1*8^"Moins animé" \key a \major \bar "||"
  R1*12^"Modéré"
  R1*9
  R1*1^\markup { \italic { Soprano solo } }
  R1*1
  R1*1
  R1*1
  b,4.\pp^\markup "Aa---"\< (cis8\! b\>^\markup { \italic { Soutenu } } a4.)\! 
  d4.\< ( cis8\! d\> cis4.\!)
  fis\< (gis8  e fis4.\!)
  cis\> (d8 ais b4.\!)
  b\p (c8 b a b c 
  d4.\< e8 d c d e\!)
  R1*1
  g4.\sf ( fis8\> e4. dis8\!
  d!4) r4 r2
  f4.\p\> (e8 d4\!) r4
  R1*6^\markup { \italic { Plus lent } }
  R1*1^\markup { \italic { Soprano solo } }
  R1*1
  R1*1
  a16\pp^\markup { \italic { Solfiez } } (b a gis) a2 r4
  r4 r8 a8-. a-. r8 r8 a-.
  a16 ( b a gis) a2 r4
  r4 r8 a8-. a-. r8 r8 a-.
  a16 ( b a gis) a2 r4
  r4 r8 a8-. a-. r8 r8 a-.
  a16 ( b a gis) a2 r4
  a16 b a gis a4~ a16 b a gis a4~
  a16 (b a gis a b a gis_\markup { \italic { cresc. } }) a8-. gis'?-. ^\markup { \italic { La } } gis-. ^\markup { \italic { La } } gis-. ^\markup { \italic { La } }
  gis-.\< ^\markup { \italic { La } } gis-. ^\markup { \italic { La...} } gis-. gis-.\! gis-.\ff gis-. gis-.\> gis-. 
  gis-. gis-. gis-. gis-. gis-.\!\pp r8 r4 \bar "||" 
  \key d \major 
  a,8-. r8 r8 a-. a-.  r8 r8 a-. 
  a8-. r8 r8 a-. a-.  r8 r8 a-. 
  a8-. r8 r8 a-. a-.  r8 r8 a-. 
  a8-. r8 r8 a-. a-.  r8 r8 a-. 
  a8-. r8 r8 a-. a-.  r8 r8 a-. 
  a8-. r8 r8 a-. a-.  r8 r8 a-. 
  a8-. r8 r8 a-. a-.  r8 r8_\markup { \italic { cresc. } } a-. 
  a8-.\< r8 r8 a-. a-.  r8 r8 a-.\!
  a\f r8 r4\< r8 a' a a\! 
  d,4\ff ~ d16 e d cis d4 ~ d16 e d cis 
  d4~ d16 a b cis d e fis g a b cis d 
  e, fis e d e4~ e16 fis e d e4~
  e16 fis e d e b cis d e fis g a b cis d e
  a,8 r8 r4 r2
  a16\mf b a gis a b cis d g, a g fis g a b cis
  d8 r8 r4 r2
  d,16\f e d cis d e fis g c,\> d c b c d e fis\!
  b,8 r8 r4 r8 b'16\pp (a g a fis g 
  e8-.) b4.->~ b16\< g' fis g e fis d e\!
  cis8\f r r4 r8 cis'16\pp (b a b gis a 
  fis8-.) cis4.->~ cis16\< a' gis a fis g e fis\! 
  d1\f~
  d8_\markup { \italic { dim. } } d-. d-. d-. d-. d-. d-. d-. 
  R1*1
  r16\ff b cis d e g fis e d r16 r8 r4
  R1*3 
  r16\f e fis g a b c\< d c b a g fis e\! d c 
  \break
  \tag #'split-here {
    c'8\ff->-. b->-. r4 r2\fermata \bar "||"
    \time 3/4 
    a8-.\pp g-. r4 r4
    b8-. a-. r4 r4
    \bar "||" \time 4/4 a8-. g-. r4 b8-. a-. r4 
    a8-. g-. r4 b8-. a-. r4
    g!8-. fis-. r4 a8-. gis-. r4
    g!8-. fis-. r4 a8-. gis-. r4
    g!8-. fis-. r4 r2
    r8 a-> b-> cis-> d2->~
    d8 g, a b cis2->~ 
    cis8 fis, g a b2->~
    b8 e, fis g a_\markup { \italic { dim. } } d, e fis
    g\> a,\p r4\! r2 \bar "||"
    
    
    \break
    \set tupletSpannerDuration = #(ly:make-moment 1 4)
    \times 2/3 { d8 e fis g fis g e fis g a g a 
      fis g a b a b e, fis g a g a 
      d, e fis g fis g e fis g a g a
      fis g a b a b e, fis g a g a 
      fis g a b a b g_\markup { \italic { cresc. } } a b cis b cis}
    fis,8-. r8 g8-. r8 e-. r cis-. r
    \set tupletSpannerDuration = #(ly:make-moment 1 4)
    \times 2/3 {  d8\f e fis g fis g e fis g a g a 
      fis\< g a b a b g a b cis b cis\!}
    d8_\markup { più \dynamic f } r r4 \set tupletSpannerDuration = #(ly:make-moment 1 4)
    \times 2/3 { d8_\markup { \italic { Toujours plus animé } } cis b a b cis
    } 
    d8 r r4 \set tupletSpannerDuration = #(ly:make-moment 1 4)
    \times 2/3 { d8 cis b a b cis }
    d8 r r4 \set tupletSpannerDuration = #(ly:make-moment 1 4)
    \times 2/3 { d8 cis b a b cis }
    d8 r r4 \set tupletSpannerDuration = #(ly:make-moment 1 4)
    \times 2/3 { d8 cis b a b cis }
    d8 r r4 \set tupletSpannerDuration = #(ly:make-moment 1 4)
    \times 2/3 { d8 cis b a b cis }
    d\< cis b a g fis e d \! \bar "||" 
    \time 2/2 a'2\ff-> d->  
    gis,-> a-> 
    d,->_\markup { \italic { dim. } }\> fis 
    a d,\!
    d1\pp~
    d~
    d~_\markup { \italic { cresc. } }
    d~
    d2 r2
    r8\f d\< fis b d4 b8 fis\!
    a->-.\ff r8 r4 
    <<{cis8->-. s8 s4 d8->-. s8 s4 s2 } \\ { a8->-.  d8\rest d4\rest d,8->-. d8\rest d4\rest d2\rest } >> \bar "|."
  } 
}

NewBass = \relative c {
  \clef bass \key d \major
  \applyMusic #mmrest-of-length { \removeWithTag #'split-here \Basses }
  c'8->-. b->-. r4 r2\fermata
  \time 3/4 c8-. b-. r4 r4
  d8-. cis-. r4 r4
  \bar "||" \time 4/4 c8 -. b-. r4 d8-. cis-. r4
  c8 -. c-. r4 d8-. cis-. r4
  g8-. fis-. r4 a8-. gis-. r4
  g8-. fis-. r4 a8-. gis-. r4
  g8-. fis-. r4 r2
  r8 fis-> g-> a-> b-> a-> g-> fis->
  e4-> fis8 g a g fis e 
  d4-> e8 fis g fis e d 
  cis4-> d8 e fis b, cis d e a, r4 r2 \bar "||"  
}

\score {
  \new GrandStaff <<
    \new Staff \with {
      instrumentName = "Basses"
      midiInstrument = "acoustic grand"
    } { \clef bass \Basses }
    \new Staff \NewBass
  >>
  \layout { 
    
    %\context {
    % \Score
    % \consists "Span_bar_engraver"
    % Avoid a vertical line at the beginning of the system:
    % \remove "System_start_delimiter_engraver"
    % Incorporate the new context in the hierarchy
    % \accepts "TemporaryStaff"
    % }
    %\context {
    %\Staff
    %\name "TemporaryStaff"
    %\alias "Staff"
    %\remove "Clef_engraver"
    %\remove "Time_signature_engraver"
    %\remove "Key_engraver"
    %}
    \context {
      \Staff
      \RemoveEmptyStaves
      \override VerticalAxisGroup #'remove-first = ##t
    }
  }
  \midi {
    \context {
      \Score
      tempoWholesPerMinute = #(ly:make-moment 100 4)
    }
  }
}
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to