LilyPond does not consider the chords to be part of the Staff,
rather it's treated as a completely separate context (as it's called
in LilyPond). This may not agree with your intuition.
If you give the chords a separate identifier and let your score consist
of
<<
\myChords
\myMelodyStaff
>>
then, the things will appear where you expect them. See the full example
below:
% Created on Fri Jun 27 20:05:12 CEST 2008
\version "2.11.49"
\header {
title = "gitaar"
composer = "d"
}
myChords = \chords
{
c1:m7 f2:7 c2
}
staffJazzGuitar = \new Staff {
<<
\time 4/4
\set Staff.instrumentName="Jazz Guitar"
\set Staff.midiInstrument="electric guitar (jazz)"
\transposition c,
\key c \major
\clef treble
\relative c'' {
% Type notes here
a b c d e f a g dis d d, d d d d
\bar "|."
}
>>
}
\score {
<<
\myChords
\staffJazzGuitar
>>
\midi {
}
\layout {
}
}
I strongly recommend you to read the Learning Manual for version 2.11.
Even if you read the Tutorial of some earlier version before, this part
of the documentation has been significantly updated and improved and
should hopefully provide a more thorough answer to your question.
/Mats
rosea wrote:
I want to put chords above a melody... but how? In my doc now the
chords are unther/ below the notation bar:
http://paste.ubuntu.com/23359/
I want to have it like here,>> pop music:
http://lilypond.org/web/switch/howto
~d
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user