lilypond-user
[Top][All Lists]
Advanced

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

Changing key after line break


From: Anders Eriksson
Subject: Changing key after line break
Date: Sat, 23 Jun 2012 20:38:26 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1

I'm trying to study Music Theory and Lilypond is a really good tool!

I want to create a sheet with all the diatonic chords in all Major scales, and I'm almost there.

The goal is to have each key on a separate line. My problem is that the new key signature starts at the last bar on the previous line!

How do I fix this?

here is the code: ( I have only entered the Sharp Keys)
%% Start of file
\version "2.14.2"

\header {

title = "Diatonic Chords in Major keys"

}

chordNames = \chordmode {

c4 d:m e:m f g a:m b:dim c' | \break

}

\score {

<<

\new ChordNames { \chordNames

\key g \major \transpose c g {\chordNames}

\key d \major \transpose c d {\chordNames}

\key a \major \transpose c a {\chordNames}

\key e \major \transpose c e {\chordNames}

\key b \major \transpose c b {\chordNames}

\key fis \major \transpose c fis {\chordNames}

\key cis \major \transpose c cis {\chordNames}

}

\new Staff { \key c \major \chordNames

\key g \major \transpose c g {\chordNames}

\key d \major \transpose c d {\chordNames}

\key a \major \transpose c a {\chordNames}

\key e \major \transpose c e {\chordNames}

\key b \major \transpose c b {\chordNames}

\key fis \major \transpose c fis {\chordNames}

\key cis \major \transpose c cis {\chordNames}

}

>>

\layout { }

\midi { }

}

%% End of file


// Anders

--
Computer says No!




reply via email to

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