gnu-music-discuss
[Top][All Lists]
Advanced

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

Smart transpose


From: Laurent Martelli
Subject: Smart transpose
Date: 15 Dec 2000 03:45:46 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

I've just entered a request on cosource.com :

        http://www.cosource.com/cgi-bin/cos.pl/wish/info/387

Here's a copy of my feature request :

Lilypond has command (\transpose) to transpose music in other keys, so
that you can easily print the music for a Bb trumpet if you typed in
C, or any other key.

The problem with it, is that an accidental (# or b) in the original
key may result in a double accidental in the transposed key.

For instance, a #A in the key of C, when transposed in the key of E
will result in a ##C, which should rather be printed as a D.

Your task, if you accept it is to implement a \smarttranspose command
that would translate such oddities into more natural notations. Double
accidentals should be removed, as well as #E (-> F), bC (-> B), bF (->
E), #B (-> C).


-- 
Laurent Martelli
address@hidden                        http://www.linuxfan.com/~laurent



reply via email to

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