lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with Chord Names


From: Amelie Zapf
Subject: Re: Problem with Chord Names
Date: Mon, 7 Jul 2003 10:29:25 +0200
User-agent: KMail/1.4.3

Hi Rick, all,

> I'm not sure I follow this (I have only been playing around with
> lilypond for a few weeks), does this put the chord names over all of the
> staves, or can it put chord names over just certain staffs and the only
> in sections where I want to have chord names.

What I gave you puts the chords above everything, which is what I use for my 
scores. It's most convenient if you're directing.

For the part extractions, I include the chords in every part, as it gives the 
players a solid sense of where they are.

But you can choose to do it differently.

I would also encourage you to use "relative octave mode" (see the manual, it 
saves you all that octave ' and , typing), as well as transposition, so you 
can enter all the horn parts the way they sound, not having to transpose in 
your head.

That's why I never got far on the tenor saxophone... I can't stand thinking 
"C" and hearing "Bb".

This score does all the required stuff and then some:

\version "1.6.6"
\header {
        title = "Song"
        subtitle = "(tune)"
        composer = "Me"
        meter = "moderato"
        piece = "Swing"
}
\include "paper16.ly"
\include "english.ly"

%%%%%%%%%%%% Some macros %%%%%%%%%%%%%%%%%%%

sl = {
          \property Voice.NoteHead \override #'style = #'slash
          \property Voice.Stem \override #'length = #0 }
nsl = {
         \property Voice.NoteHead \revert #'style
         \property Voice.Stem \revert #'length }
cr = \property Voice.NoteHead \override #'style = #'cross
ncr = \property Voice.NoteHead \revert #'style


%%%%%%%%%%%% Keys'n'thangs %%%%%%%%%%%%%%%%%

global = \notes {
        \time 4/4
}
Concert = \notes \key c \major
Bb = \notes \key d \major
Eb = \notes \key a \major

% ############ Horns ############
% ------ Trumpet ------
trpt = \notes  {
        c''1 c'' c''
}

trumpet = {
        \global 
        \property Staff.instrument = #"Trumpet"
        \clef treble
        \Bb
        \context Staff <
                \trpt
        >
}

% ------ Alto Saxophone ------
alto = \notes {
        c''1 c'' c''
}

altosax = {
        \global
        \property Staff.instrument = #"Alto Sax"
        \clef treble
        \Eb
        \context Staff <
                \alto
        >
}

% ------ Baritone Saxophone ------
bari = \notes {
        c''1 c'' \sl b'4^"Solo" b' b' b' \nsl
}

bariharmony = \chords { s1 s d2:maj e:m.7 }
barisax = {
        \global
        \property Staff.instrument = #"Bari Sax"
        \clef treble
        \Eb
        \context Staff <
                \bari
        >
}
% ------ Trombone ------
tbone = \notes {
        c1 c c
}

trombone = {
        \global
        \property Staff.instrument = #"Trombone"
        \clef bass
        \Concert
        \context Staff <
                \tbone
        >
}
% ############ Rhythm Section #############
% ------ Guitar ------
gtr = \notes {
        c''1 \sl b'4 b' b' b' \nsl c''1
}

gtrharmony = \chords {
        s1 c2:min.7+ d2:maj.9
}

guitar = {
        \global
        \property Staff.instrument = #"Guitar"
        \clef treble
        \Concert
        \context Staff <
                \gtr
        >
}

%% ------ Piano ------
rhUpper = \notes {
        \voiceOne
        c''1 c'' c''
}

rhLower = \notes {
        \voiceTwo
        e'1 e' e'
}

PianoRH = {
        \clef treble
        \Concert
        \global
        \property Staff.instrument = #"Piano"
        \property Staff.instr = #"Piano"
        \property Staff.midiInstrument = "acoustic grand"
        \context Staff <
        \context Voice = one \rhUpper
        \context Voice = two \rhLower
        >
}

lhUpper = \notes {
        \voiceOne
        g1 g g
}

lhLower = \notes {
        \voiceTwo
        c1 c c
}

PianoLH = {
        \clef bass
        \Concert
        \global
        \property Staff.midiInstrument = "acoustic grand"
        \context Staff <
        \context Voice = one \lhUpper
        \context Voice = two \lhLower
        >
}

% ------ Bass Guitar ------
bass = \notes {
        c1 c c
}

bass = {
        \global
        \property Staff.instrument = #"Bass"
        \clef bass
        \Concert
        \context Staff <
                \bass
        >
}

% ------ Drums ------
\include "drumpitch-init.ly"
up = \notes {
        hh4 <hh4 sn> hh4 <hh4 sn> hh4 <hh4 sn> hh4 <hh4 sn>
        hh4 <hh4 sn> hh4 <hh4 sn>
}
down = \notes {
        bd4 s bd s bd s bd s bd s bd s
}

drums = {
        \global
        \property Staff.instrument = #"Drums"
        \clef percussion
        \context Staff <
                \context Voice = first { \voiceOne \up }
                \context Voice = second { \voiceTwo \down }
        >
}

%%%%%%%%% It All Goes Together Here %%%%%%%%%%%%%%%%%%%%%%

\score {
<
        \context StaffGroup = horns <
                \context Staff = trumpet \trumpet
                
                \context Staff = altosax \altosax

                \context ChordNames = barichords \bariharmony

                \context Staff = barisax \barisax
                
                \context Staff = trombone \trombone
        >

        \context StaffGroup = rhythm <
                \context ChordNames = chords \gtrharmony
                \context Staff = guitar \guitar

                \context PianoStaff <
                \context Staff = upper \PianoRH
                \context Staff = lower \PianoLH
                >
                
                \context Staff = bass \bass
                
                \apply #(drums->paper 'drums) \context Staff = drums \drums
        >
>
        \midi { \tempo 4 = 75 }
        \paper {
                linewidth = 15.0 \cm
                \translator { \HaraKiriStaffContext }
                \translator {
                        \StaffContext
                        \consists Instrument_name_engraver
                }
                \translator {
                        \ScoreContext
                        BarNumber \override #'padding = #3
                        RehearsalMark \override #'padding = #2
                        skipBars = ##t
                }
        }
}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]