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
On 15 January 2016 at 13:59, Ralph Palmer <[email protected]> wrote:
> 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
> [email protected]
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
% 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
\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 {}
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user