[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ossia-like scordatura positioning question
From: |
David Kastrup |
Subject: |
Re: Ossia-like scordatura positioning question |
Date: |
Wed, 23 May 2018 00:49:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Menu Jacques <address@hidden> writes:
> Hello folks,
>
> This is similar to an ossia, aiming at showing the scordatura graphically.
>
> I don’t understand why the \new Staff shows up below the staff
> containing c’4, and not above it, which would be better I think.
LilyPond has no reason to create new staves _above_ existing staves. It
would most certainly _not_ be generally better.
You can easily write
\new Staff \with { alignAboveContext = "P_POne_Staff_One" } ...
to change this. It's what you'd do in ossia contexts too.
> \version "2.19"
>
> P_POne_Staff_One_Voice_One = \relative {
>
> \key c \major
> \time 4/4
> \clef "treble"
>
> <<
> \new Staff {
> \hide Staff.Stem
> \hide Staff.TimeSignature
> \tiny
> <c' g f'>4^\markup {\bold "Scordatura"}
> }
> {
> c'4
> }
> >>
> \bar "|."
> }
>
> \score {
> <<
> \new Staff = "P_POne_Staff_One"
> <<
> \context Voice = "P_POne_Staff_One_Voice_One" <<
> \P_POne_Staff_One_Voice_One
> >>
> >>
> >>
>
> \layout {}
> }
--
David Kastrup