lilypond-user
[Top][All Lists]
Advanced

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

Re: setting a keySignature


From: Mats Bengtsson
Subject: Re: setting a keySignature
Date: Thu, 19 Oct 2006 11:20:14 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060910 SeaMonkey/1.0.5

One solution is to first set the key signature you want printed and then
set the alternative one that gives the accidental handling you want, but
prevent that the actual key signature is printed. The problem is that the
second key signature has to appear stricly later than the first one, i.e. you
need at least one note in between. This is only a true problem if your piece
starts with an e flat in another octave than the printed key signature.
Here's an example:

\version "2.8.0"
\relative c'{
\set Staff.keySignature = #'( ((0 . 2) . -2))

 es1 |
 \set Staff.keySignature = #'( (2 . -2) )
 \override Staff.KeySignature #'stencil = ##f
 \once \set Staff.printKeyCancellation = ##f
 es'1 | es'
}


  /Mats

lilypondtester wrote:
I know that \set Staff.keySignature = #'( (2 . -2) )

affects all E notes in all octaves. In the key signature, it displays a flat
symbol over the 4th line of staff(which is an E note). Is there any way that
I can change this display such that the flat symbol in the key signature is
displayed on the 1st line of staff (which is another E note)?

I know that using \set Staff.keySignature = #'( ((0 . 2) . -2))
It is possible to display flat symbol of the key signature on the 1st staff
line, but then it just affects that octave, which is something undesirable.

--
=============================================
        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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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