On Fri, Jan 15, 2016 at 10:39 AM, Kevin Barry <barr...@gmail.com> wrote:

> Hi Ralph,
>
> This snippet might help:
>
> http://www.lilypond.org/doc/v2.19/Documentation/snippets/rhythms#rhythms-changing-time-signatures-inside-a-polymetric-section-using-_005cscaledurations
>
> I've attached my version; the only thing I wasn't able to do was get the
> spacing on the ossia staves to ignore the others. I don't know how to fix
> that.
>
> Kevin
>

Thanks, Kevin, and sorry I didn't respond earlier. It took a lot of
frustrating time for me to incorporate your changes into my original, more
complex, score.

I'm left with one small problem - the last bar line. The changes to the
SpanBar made necessary by the ossia have affected the final SpanBar, and I
can't figure out how to revert for that one bar. Any help would be greatly
appreciated.

In gratitude to Kevin and to the whole community,

Ralph

-- 
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com
% Ossia above and below the staves
\version "2.19.33"

\language "english"
#(set-global-staff-size 20)

upper =
\relative c' {  
  \key g \major
  \clef treble
  \time 4/4

  \override Score.NonMusicalPaperColumn.line-break-permission = ##f
  
  d4^"main staff" d e e |
  d4 d e e |
  d4 d e e |
  d4 d e e |
  d4 d e e |
  \break
  
  d4 d e e |
  d4 d e e |
  d4 d e e |  
  d4 d e e |
  d4 d e e |
  \break
  
  d4 d e e |
  d4 d e e |
  d4 d e e |
  d4 d e e |
  d4 d e e 
  \bar "|." |  
}

lower =
\relative c' {  
  \key g \major
  \clef treble
  \time 4/4

  \override Score.NonMusicalPaperColumn.line-break-permission = ##f
  
  e4^"lower staff" e d d |
  e4 e d d |
  e4 e d d |
  e4 e d d |
  e4 e d d |
  \break
  
  e4 e d d |
  e4 e d d |
  e4 e d d |
  e4 e d d | 
  e4 e d d |   
  \break
  
  e4 e d d |
  e4 e d d |
  e4 e d d |
  e4 e d d |
  e4 e d d \bar "|." |
}

upperOssia =
\relative c'' {
  s1*5 |
  d4^"Facilité"_"upper ossia" e f g |
  d4 e f g |
  d4 e f g |
}


lowerOssiaA =
\relative c'' {
  s1*10
  \scaleDurations 4/3 {
    \set Timing.measureLength = #(ly:make-moment 4/3)
    g4^"Facilité"_"lower ossia" a b c
    g4 a b c
    g4 a b c
  }
}

lowerOssiaB =
\relative c'' {
  s1*10
  \scaleDurations 4/3 {
    \set Timing.measureLength = #(ly:make-moment 4/3)
    c4 b a g
    c4 b a g
    c4 b a g
  }
}


% Ossia score

\score {
  \new StaffGroup 
  \with {
    \override SpanBar.glyph-name = #"!"
  }
  <<
    \new Staff 
    \with {
      \remove "Time_signature_engraver"
      fontSize = #-3
      \override StaffSymbol.staff-space = #(magstep -3)
      \override StaffSymbol.thickness = #(magstep -3)
    }
    << \upperOssia >>
    <<
      \new GrandStaff 
      \with {
        \override SpanBar.glyph-name = #"|"
      }
      <<
        \new Staff << \upper >>
        \new Staff << \lower >>
      >>
    >>
    <<
      \new GrandStaff 
      \with {
        \override SpanBar.glyph-name = #"|"
      }
      <<        
        \new Staff
        \with {
          \remove "Time_signature_engraver"
          fontSize = #-3
          \override StaffSymbol.staff-space = #(magstep -3)
          \override StaffSymbol.thickness = #(magstep -3)
          %firstClef = ##f
        }
        << \lowerOssiaA >>
        \new Staff
        \with {
          \remove "Time_signature_engraver"
          fontSize = #-3
          \override StaffSymbol.staff-space = #(magstep -3)
          \override StaffSymbol.thickness = #(magstep -3)
          %firstClef = ##f
        }
        << \lowerOssiaB >>
      >>
    >>
  >>
  
  \header {
    piece = "Ossia : single staff above; grand staff below, with different timing"
  }
  \layout {
    \context {
      \Score
      \remove "Timing_translator"
      \remove "Default_bar_line_engraver"
    }
    \context {
      \Staff \RemoveEmptyStaves
      \override VerticalAxisGroup.remove-first = ##t
    }
    \context {
      \Staff
      \consists "Timing_translator"
      \consists "Default_bar_line_engraver"
    }
  }
  %  \midi {}
}

Attachment: multiOssia.pdf
Description: Adobe PDF document

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to