[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Too high measure numbers with ossia staff
From: |
Valentin Petzel |
Subject: |
Re: Too high measure numbers with ossia staff |
Date: |
Sun, 23 Oct 2022 10:13:04 +0200 |
Hi Erika,
a very simple method would be to simply move the Bar_number_engraver from
Score to the top Staff like this:
\layout {
\context {
\Score
\remove Bar_number_engraver
}
}
\score{
<<
\new Staff = "ossia" \with {
\remove "Time_signature_engraver"
\hide Clef
fontSize = #-3
\override StaffSymbol.staff-space = #(magstep -3)
\override StaffSymbol.thickness = #(magstep -3)
}
\new Staff \with { \consists Bar_number_engraver } \music
>>
}
That being said: As long as you do not need multiple ossias in one system you
can use this much simple method:
\version "2.22"
oss = \markup {\raise #1 "ossia" }
ossiaStaff = \with {
\remove "Time_signature_engraver"
\omit Clef
fontSize = #-3
\override StaffSymbol.staff-space = #(magstep -3)
\override StaffSymbol.thickness = #(magstep -3)
}
music = \relative c' {
c4 b c2
<<
{ e4 f e2 }
\new Staff \with { alignAboveContext = "staff" \ossiaStaff } {
e4^\oss g8 f e2
}
>>
g4 a g2 \break
c4 b c2
<<
{ g4 a g2 }
\new Staff \with { alignAboveContext = "staff" \ossiaStaff } {
g4^\oss e8 f g2
}
>>
e4 d c2
}
\score{
\new Staff = "staff" \music
}
If you want to have multiple ossias in one system this will fail, as these
ossia staves would be put into different lines.
Cheers,
Valentin
Am Freitag, 21. Oktober 2022, 21:53:52 CEST schrieb Erika Pirnes:
> Hi,
>
> I just learned how to use the ossia staff. And I'm quite happy with the
> results, except it seems that the measure numbers follow the hidden ossia
> staff instead of the first visible staff. Can anyone think of a nice way to
> move the measure numbers down? Below is a modified version of the example
> in the documentation.
>
> \version "2.18.2"
>
> oss = \markup {\raise #1 "ossia" }
>
> music = \relative c' {
> <<
> { c4 b c2 }
> \context Staff = "ossia" {
> \stopStaff s1
> }
>
>
> <<
> { e4 f e2 }
> \context Staff = "ossia" {
> \startStaff e4^\oss g8 f e2 \stopStaff
> }
>
> g4 a g2 \break
> c4 b c2
> <<
> { g4 a g2 }
> \context Staff = "ossia" {
> \startStaff g4^\oss e8 f g2 \stopStaff
> }
>
> e4 d c2
> }
>
> \score{
> <<
> \new Staff = "ossia" \with {
> \remove "Time_signature_engraver"
> \hide Clef
> fontSize = #-3
> \override StaffSymbol.staff-space = #(magstep -3)
> \override StaffSymbol.thickness = #(magstep -3)
> }
> \new Staff <<\music>>
>
> }
>
>
> Thanks in advance!
> Erika
signature.asc
Description: This is a digitally signed message part.