Greetings -

I'm running LilyPond 2.19.33 under Win8.

I have a piece with multiple ossia challenges. I think I'm almost there
(unless I have to make fundamental changes). I'm attaching what I have so
far.

There are two changes I need to make. I can provide you with a pdf of what
I'm looking for, but I'll have to transcribe it by hand. I think an
explanation should be sufficient; if it's not, please let me know and I'll
send a hand transcription.

1) The lower ossia replaces *four* bars in the main grand staff (i.e., the
last bar line in the lower ossia grand staff needs to line up with the bar
line ending the fourth bar in the third line of the main grand staff). And
I would like the spacing of the bars in the lower ossia to look "normal"
within the ossia itself.

2) Because the bar lines in the lower ossia will be offset from the bar
lines in the main grand staff (except for the final one of the ossia), I
need to eliminate the "span bars" between the main grand staff and the
lower ossia (again, except for the final one of the ossia). I want to keep
the span bar dashed.

If both of these are not possible, I at least need to match the three bars
of the lower ossia to four bars of the main grand staff.

I'm attaching my current .ly file and my current pdf.

Thank you in advance for any help and/or pointers you can provide. Maybe we
can turn this into a snippet for the LSR.

All the best,

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 |
  \break  
}

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 |
  \break
}

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
  g4^"Facilité"_"lower ossia" a b c |
  g4 a b c |
  g4 a b c |
}

lowerOssiaB =
\relative c'' {
  s1*10
  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 {
      \Staff \RemoveEmptyStaves
      \override VerticalAxisGroup.remove-first = ##t
    }
  }
  %  \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