[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: layout problem
From: |
Timothy Lanfear |
Subject: |
Re: layout problem |
Date: |
Sun, 12 May 2024 16:37:05 +0100 |
User-agent: |
Mozilla Thunderbird |
On 12/05/2024 12:41, Archer Endrich
wrote:
Hello,
I've been given a short item to realise in Lilypond and it
includes a layout problem that I haven't been able to solve.
Basically, it is a piano piece in which, after a bit, a part for
chimes is added: i.e., another staff above the piano's treble
part a few bars in as in my MWE. I have tried to do this as an
ossia staff in testlayoutB.ly but it produces the result
testlayoutB.pdf which starts the chimes part at the beginning of
the example, not where I want it to start.
Label your staves and use alignAboveContext (or
alignBelowContext) to position the new staff relative to an
existing staff.
\version "2.24.0"
\header {
title = "Test Layout"
}
chimes = {
\once \omit Staff.TimeSignature
\once \omit Staff.Clef
\stopStaff
s1^\markup \italic "Some text here"
\startStaff
\clef "treble" i\time 3/4 bes'2\mp 4
}
\new PianoStaff
<<
\new Staff="RH" {
\time 4/4
\clef "treble"
\repeat unfold 2 {d'2 f'2 | g'2 bes'2 | }
<<
{ R1 \stopStaff s2.^\markup \wordwrap { \italic \small "A
lot more more text placed in here" } }
\new Staff \with { alignAboveContext="RH" } { \chimes }
>>
}
\new Staff="LH" {
\time 4/4
\clef "bass"
\repeat unfold 20 {g,8[ g,]}
\time 3/4
\repeat unfold 12 {g,8[ g,]}
}
>>
--
Timothy Lanfear, Bristol, UK.
- layout problem, Archer Endrich, 2024/05/12
- Re: layout problem,
Timothy Lanfear <=