Discussion:
staff order
sean read
2018-11-13 09:45:32 UTC
Permalink
I'm trying to make my first multi staff lilypond file and finding that I
can't figure out how to control the order of the staves. When I use


\version "2.14.1"
\score {
\new StaffGroup <<
\new staff {
\key ees \major g''2 f8 g8~ |
}

\new staff {
\key ees \major aes'8 ees'8 c'2 |

}
}


The output always has the staff at the bottom on the top, but then when I
move that staff to the top it is still on the top!

How to I explicitly define the order of staves?
sean read
2018-11-13 09:29:51 UTC
Permalink
I'm trying to make my first multi staff lilypond file and finding that I
can't figure out how to control the order of the staves. When I use


\version "2.14.1"
\score {
\new StaffGroup <<
\new staff {
\time 3/4 {\key ees \major g''2 f8 g8~ | }
}

\new staff {
{\key ees \major aes'8 ees'8 c'2 | }

}
}


The output always has the staff at the bottom on the top, but then when I
move that staff to the top it is still on the top!

How to I explicitly define the order of staves?
Noeck
2018-11-13 18:48:09 UTC
Permalink
Dear Sean,

the Staff needs to start with a capital S: \new Staff
LilyPond is case-sensitive. That’s all.

Two other points:

1. You have some arbitrarily placed braces. I’d suggest to use them only
where they are needed.

2. Are you really using LilyPond 2.14? That’s really old. I’d suggest to
install a newer version (2.18 "stable" or a also reasonably stable
"development version" 2.19).

Here is your code such with the correct Staff:

\score {
\new StaffGroup <<
\new Staff {
\time 3/4
\key ees \major
g''2 f8 g8~ |
}
\new Staff {
\key ees \major
aes'8 ees'8 c'2 |
}
}

Cheers,
Joram

sean read
2018-11-13 09:09:14 UTC
Permalink
I'm trying to make my first multi staff lilypond file and finding that I
can't figure out how to control the order of the staves. When I use


\version "2.14.1"

\header {

title = "Wedding song"

composer = "Ari Hoenig"
}
\score {
\new StaffGroup <<
\new staff {
\time 3/4 {\key ees \major g''2 f8 g8~ | }
}

\new staff {
{\key ees \major aes'8 ees'8 c'2 | }

}
}


The output always has the staff at the bottom on the top, but then when I
move that staff to the top it is still on the top!

How to I explicitly define the order of staves?
Ralph Palmer
2018-11-13 15:45:46 UTC
Permalink
Post by sean read
I'm trying to make my first multi staff lilypond file and finding that I
can't figure out how to control the order of the staves. When I use
\version "2.14.1"
\score {
\new StaffGroup <<
\new staff {
\key ees \major g''2 f8 g8~ |
}
\new staff {
\key ees \major aes'8 ees'8 c'2 |
}
}
The output always has the staff at the bottom on the top, but then when I
move that staff to the top it is still on the top!
How to I explicitly define the order of staves?
Hi, Sean -

I don't know if it's "standard practice", but I always put my individual
staves into separate "functions" (is that right?), then combine them, as :

%%%%%%%%%%%%

\version "2.19.81"
Right =
\relative c' {
\clef treble
\key g \major
\time 4/4

a4 b c d |
}

Left =
\relative c' {
\clef bass
\key g \major
\time 4/4

d4 c b a |
}

\score {
\new GrandStaff <<
\new Staff \Right
\new Staff \Left
\layout {}
}

%%%%%%%%%%%%%%%

HTH.

All the best,

Ralph
--
Ralph Palmer
Brattleboro, VT
USA
***@gmail.com
Pierre Perol-Schneider
2018-11-13 15:47:29 UTC
Permalink
Hi Sean,
You have to write "\New Staff" instead of "\New staff":

\score {
\new StaffGroup <<
\new Staff {
\key ees \major g''2 f8 g8~ |
}
\new Staff {
\key ees \major aes'8 ees'8 c'2 |
}
}

\score {
\new StaffGroup <<
\new Staff {
\key ees \major aes'8 ees'8 c'2 |
}
\new Staff {
\key ees \major g''2 f8 g8~ |
}
}

HTH,
Cheers,
Pierre

PS. v.214 is pretty old. how about using v2.19?
Post by sean read
I'm trying to make my first multi staff lilypond file and finding that I
can't figure out how to control the order of the staves. When I use
\version "2.14.1"
\score {
\new StaffGroup <<
\new staff {
\key ees \major g''2 f8 g8~ |
}
\new staff {
\key ees \major aes'8 ees'8 c'2 |
}
}
The output always has the staff at the bottom on the top, but then when I
move that staff to the top it is still on the top!
How to I explicitly define the order of staves?
_______________________________________________
lilypond-user mailing list
https://lists.gnu.org/mailman/listinfo/lilypond-user
Carl Sorensen
2018-11-13 16:48:26 UTC
Permalink
From: sean read <***@gmail.com>
Date: Tuesday, November 13, 2018 at 2:45 AM
To: <lilypond-***@gnu.org>
Subject: staff order

I'm trying to make my first multi staff lilypond file and finding that I can't figure out how to control the order of the staves. When I use


\version "2.14.1"
\score {
\new StaffGroup <<
\new staff {
\key ees \major g''2 f8 g8~ |
}

\new staff {
\key ees \major aes'8 ees'8 c'2 |

}
}


The output always has the staff at the bottom on the top, but then when I move that staff to the top it is still on the top!

How to I explicitly define the order of staves?

Check your log warning messages.

You have

\new staff

When you should have

\new Staff

Lilypond is case sensitive.

HTH,

Carl
Continue reading on narkive:
Loading...