The latest thing I learned about atonicKey is that is won't work with \midi.
Of course that is not because it is bad, but because it is not standard and
\midi does not anticipate the key signature. If anything is to be blamed, it
is midi which needs to be updated. But is it a low priority and
understandably so. Lilypond's paper output will always have the higher
priority.
Stephen
----- Original Message -----
From: "Stephen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <lilypond-devel@gnu.org>; "Mehmet
Okonsar" <[EMAIL PROTECTED]>
Sent: Monday, July 18, 2005 5:55 AM
Subject: Re: Force Accidentals
Erik Sandberg wrote:
On Saturday 16 July 2005 09.10, Mehmet Okonsar wrote:
Here is a short .ly to illustrate what I expect :
One case is still unclear: What about
{ c' cis'' c'}
?
Should the last c' has a natural?
Imagine if you reversed that:
{cis' c'' cis'}
Should the last cis' get a sharp?
The idea is to treat the natural as an accidental. The purpose is to
indicate to the musician that there is no key. Normaly, if we are in the
key of C-sharp, c' requires a natural, if we are in the key of C, cis'
requires a sharp, so if there is no key, c' requires a natural and cis'
requires a sharp. It is a way to emphasis that there is no tone center,
there is no tonic and there is no key in Atonal Music.
The answer to your question is the same as the answer to mine. Treat the
natural the same as the sharp. Like the sharp, it depends on whether the
last note falls within the same measure as the first two.
This does do the job:
atonicKey =
#(def-music-function (parser location) ()
#{ #(ly:export (make-music 'EventChord
'origin $location
'elements (list (make-music 'KeyChangeEvent
'tonic (ly:make-pitch -1 4 0)
'pitch-alist '((5 . 1)
(6 . 1)
(0 . 1)
(1 . 1)
(2 . 1)
(3 . 1)
(4 . 1))))))
\set Score . extraNatural = ##f #})
\context PianoStaff <<
\override PianoStaff.KeySignature #'print-function = ##f
...
Stephen
Erik
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel