]> git.donarmstrong.com Git - lilypond.git/commit
MusicXML: Implement pitch names for different languages
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 13 Nov 2007 22:00:12 +0000 (23:00 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 13 Nov 2007 22:00:12 +0000 (23:00 +0100)
commit7cfc12332af2968351a14b8c8520da2d0b3dacad
treea3facbc3ce97ab8f00537a536b1a7e2ce5dedba7
parent555d8e498a31380d62be9f4853ab514b3786e986
MusicXML: Implement pitch names for different languages

Added a --language (-l) command line switch for the musicxml2ly
script that allows you to specify the name of a language.ly file,
so that localized pitch names (e.g. do/re/mi/fa/sol/la/ti for
espanol) are used and \include "language.ly" is automatically
inserted into the lilypond file.

Unfortunately, I had to use a global variable in the musicxml.py
file, which holds the function to convert pitches to strings.
However, I found this much cleaner than passing the language or
the function through all functions calls...
python/musicexp.py
scripts/musicxml2ly.py