On Mon, Dec 20, 2010 at 8:12 AM, Ralph Palmer <palmer.r.vio...@gmail.com> wrote: > 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) >
I think I've found it. Try using a backtick ` instead of single quote ' on this line: \set Staff.keySignature = #'(((1 . 1) . ,FLAT) When I did this it compiled (and notice in the doc example it has a backtick). Jon > 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 > palmer.r.vio...@gmail.com > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > > -- Jonathan Kulp http://www.jonathankulp.com _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user