Hi Phil, Hi Trevor,
If that helps here are other trials I was working on.
Noting found yet though.
\version "2.19.15"
myOssia = \relative c' { c4 c c c }
myMusic = \relative c' {
c1 c
<<
\new Staff \with {
\magnifyStaff #5/7
alignAboveContext = #"label"
}
\new Voice = "ossia" \with {
\remove "Dynamic_engraver"
\remove "Dynamic_align_engraver"
}\myOssia
c
>>
c c c c c c
}
myDynamics = {
% here's a very bad workaround:
%\override DynamicText.extra-offset = #'(0 . -8.5)
s1\f s s\p s\f s
\break
s s\p s\pp
}
\score {
\new GrandStaff <<
\new Dynamics \myDynamics
\new Staff = "label" \myMusic
>>
\layout {
\context {
\Dynamics
alignBelowContext = #"ossia"
}
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\markup\vspace #5
myOssiaBis = \relative c' {
s1*2
<<
\new Voice \with {
\remove "Dynamic_engraver"
\remove "Dynamic_align_engraver"
\magnifyStaff #5/7
}
c
>>
s1*7
}
myMusicBis = \relative c' {
c1 c c c c c c c
}
myDynamicsBis = {
s1\f s s\p s\f s
\break
s s\p s\pp
}
\score {
<<
\new Devnull = "ossia" \myOssiaBis
\new GrandStaff = "label" <<
\new Staff \myMusicBis
\new Dynamics \myDynamicsBis
>>
>>
\layout {
\context {
\Devnull
alignAboveContext = #"label"
}
\context {
\Dynamics
%alignBelowContext = #"ossia"
alignAboveContext = #"label"
}
}
}
Cheers,
Pierre
2015-01-18 21:29 GMT+01:00 Phil Holmes <[email protected]>:
> ----- Original Message ----- From: "Phil Holmes" <[email protected]>
> To: <[email protected]>
> Sent: Sunday, January 18, 2015 3:11 PM
> Subject: Order of contexts over staves
>
>
> I'm setting some music with temporary staves, and ensuring the the
>> temporary staff is above the main staff using
>>
>> \new Staff \with { alignAboveContext = #"label"}
>>
>> I'm also using a dynamics context, which is created with
>>
>> \new Dynamics \with { alignAboveContext = "label" }
>>
>> The problem is that the dynamics appear above the ossia stave, rather than
>> the main one. Is there any way to change the order they appear on, on the
>> page?
>>
>> Thanks.
>>
>
> Trevor has requested an example to help look into this. This is fairly
> minimal:
>
> {
> \new Staff = "label"
> <<
> \new Voice { \repeat unfold 4 c''4
> <<
> {
> R1 r2 r4 c''4
> }
> {
> \new Staff \with {
> \remove "Time_signature_engraver"
> alignAboveContext = #"label"
> \override StaffSymbol #'staff-space = #(magstep -3)
> fontSize = #-2
> }
> <<
> \new Voice {
> r2 a'2 \repeat unfold 3 a'4 r4
> }
> >>
> }
> >>
> \repeat unfold 4 c''4
> }
> \new Dynamics \with { alignAboveContext = "label" }
> {
> s1 s1 s2 s4 s4 \ff s1
> }
> >>
> }
>
> The attached image shows the proble of the dynamic being over the ossia,
> rather than the permanent stave.
>
> --
> Phil Holmes
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user