Hi Luc
This example illustrates the difference between introducing chords with
\chords and \chordmode. \chordmode simply interprets the following input as
chords;
\chords does the same but also creates an implicit ChordNames context. In
your example I think the \context ChordNames command in the score does not
create a new context as expected because one has already been created by the
\chords command. (It would be better if LilyPond then placed it in the
staff structure as specified in the \score block, but it appears it does
not.)
There are at least two ways to avoid this confusion and get the structure
you expect. You can move the override(s) into the harmonies variable and
remove the ChordNames contexts, like this:
melody= { a 1 b c }
harmonies= \chords {
\set chordChanges = ##t
a1 b c
}
\score {
<<
\harmonies
\new Staff = one \melody
\harmonies
>>
}
or you can use \chordmode and create the contexts explicitly with \new as
below. I prefer this as I like to keep all the structure stuff explicitly
in the \score block and the music in variables, to avoid surprises like
this. I think this is clearer:
melody= { a 1 b c }
harmonies= \chordmode {
\set chordChanges = ##t
a1 b c
}
\score {
<<
\new ChordNames \harmonies
\new Staff \melody
\new ChordNames \harmonies
>>
}
Trevor
----- Original Message -----
From: "Luc" <[EMAIL PROTECTED]>
To: <lilypond-user@gnu.org>
Sent: Sunday, May 11, 2008 9:37 AM
Subject: Re: Chord names below staff?
Mats Bengtsson wrote:
Staves, lyrics, chords and all other kind of "contexts" in LilyPond
are typeset in the order they first appear in your \score{...} block.
Isn't that true anymore in \version "2.11.45" ?
I get all my chords below the melody!
melody= { a 1 b c }
harmonies= \chords { a1 b c }
\score {
<<
\context ChordNames { \set chordChanges = ##t \harmonies }
\context Staff = one \melody
\context ChordNames { \set chordChanges = ##t \harmonies }
>>
}
http://www.nabble.com/file/p17170177/harmonies.png
--
View this message in context:
http://www.nabble.com/Chord-names-below-staff--tp600608p17170177.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user