lilypond-user
[Top][All Lists]
Advanced

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

key signature problem


From: Ralph Palmer
Subject: key signature problem
Date: Mon, 20 Dec 2010 09:12:22 -0500

Greetings -

I'm running LilyPond 2.12.3 under Ubuntu.

I'm trying to get a non-standard key signature : b-flat and d-flat. When I follow the 2.12.3 docs, I get the following error message.

GNU LilyPond 2.12.3
Processing `key_sign_test.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...ERROR: In procedure denominator:
ERROR: Wrong type argument in position 1: (unquote FLAT)


Here's the minimal example file :

%%%%%%%%%%%% Begin snippet %%%%%%%%%

% key signature test file

\version "2.12.3"

test =
\relative c' {
\set Staff.keySignature = #'(((1 . 1) . ,FLAT)
((0 . 6) . ,FLAT))
\clef treble
\time 4/4

a4 c b d |
e4 g f a |
}

\score {
\test
}

%%%%%%%% End snippet %%%%%%%%%%

And here is the entry from the 2.12.3 docs :

%%%% Snip %%%%
Non-traditional key signatures
The commonly used \key command sets the keySignature property, in the Staff context.
To create non-standard key signatures, set this property directly. The format of this command is a list:
\set Staff.keySignature = #`(((octave . step) . alter) ((octave . step) . alter) ...) where, for each
element in the list, octave specifies the octave (0 being the octave from middle C to the B above),
step specifies the note within the octave (0 means C and 6 means B), and alter is ,SHARP ,FLAT ,DOUBLE-SHARP etc.
(Note the leading comma.) The accidentals in the key signature will appear in the reverse order to that in which
they are specified.
Alternatively, for each item in the list, using the more concise format (step . alter) specifies that the same
alteration should hold in all octaves.
For microtonal scales where a "sharp" is not 100 cents, alter refers to the alteration as a proportion of a 200-cent whole tone.
Here is an example of a possible key signature for generating a whole-tone scale:

\relative c' {
\set Staff.keySignature = #`(((0 . 3) . ,SHARP)
((0 . 5) . ,FLAT)
((0 . 6) . ,FLAT))
c4 d e fis
aes4 bes c2
}
%%%%%%%%% Snip %%%%%%%%55

Can someone please show me where I'm going wrong?

Gratefully,

Ralph

--
Ralph Palmer
Montague City, MA
USA
address@hidden

reply via email to

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