[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make a new staff occupy the same vertical space as a previous staff
From: |
David Kastrup |
Subject: |
Re: Make a new staff occupy the same vertical space as a previous staff |
Date: |
Wed, 26 Aug 2015 03:53:29 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Joel Ebel <address@hidden> writes:
> I'm sure this is documented somewhere and I just can't seem to find
> it. How do I get a new staff to immediately follow a previous staff in
> the same vertical space. In this simple example, I'd like the TabStaff
> to end, and the RhythmicStaff to immediately follow in the same
> vertical space, rather than starting lower in the score, indicating a
> switch between picked notes vs strummed chords.
>
> \version "2.19.25"
> <<
> \new ChordNames \chordmode {
> c1 c
> }
> { \new TabStaff \relative c {
> c4 e g c
> }
> \new RhythmicStaff {
> c4 c8 c~ c c c
> }
> }
>>>
The following appears to work here. Of course it begs the question
whether we should provide a context definition like that, possibly with
a better name, in LilyPond by default.
\version "2.19.25"
<<
\new ChordNames \chordmode {
c1 c
}
\new Line {
\new TabStaff
{
\relative c {
c4 e g c \stopStaff
}
}
\new RhythmicStaff
{
4 8 8~8 8 4
}
}
>>
\layout {
\context {
\name "Line"
\type "Engraver_group"
\consists "Axis_group_engraver"
\accepts TabStaff
\accepts RhythmicStaff
}
\context {
\Score
\accepts "Line"
}
}
--
David Kastrup
- Make a new staff occupy the same vertical space as a previous staff, Joel Ebel, 2015/08/25
- Re: Make a new staff occupy the same vertical space as a previous staff, Joel Ebel, 2015/08/25
- Re: Make a new staff occupy the same vertical space as a previous staff,
David Kastrup <=
- Re: Make a new staff occupy the same vertical space as a previous staff, Joel Ebel, 2015/08/25
- Re: Make a new staff occupy the same vertical space as a previous staff, Joel Ebel, 2015/08/26
- Re: Make a new staff occupy the same vertical space as a previous staff, David Kastrup, 2015/08/27
- Re: Make a new staff occupy the same vertical space as a previous staff, Joel Ebel, 2015/08/27
- Re: Make a new staff occupy the same vertical space as a previous staff, Simon Albrecht, 2015/08/27
- Re: Make a new staff occupy the same vertical space as a previous staff, David Kastrup, 2015/08/28
- Re: Make a new staff occupy the same vertical space as a previous staff, Joel Ebel, 2015/08/29