]> git.donarmstrong.com Git - lilypond.git/commit
MusicXML: Implement relative mode for pitches
authorReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 15 Nov 2007 20:04:06 +0000 (21:04 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 15 Nov 2007 20:04:06 +0000 (21:04 +0100)
commit3025f42632efc166f71bc6c40d3fb3e46f367d56
treee6797ed8b69894902649fb5bc524352795dae053
parent1162fe827d7d180b4faf0f63613c39037f4e7b87
MusicXML: Implement relative mode for pitches

Relative mode for pitches is now triggered by an -r or --relative
command-line switch.

In this case, each voice is wrapped inside a RelativeMusic wrapper
object, and the previously converted pitch is stored in a global state
variable. The case of chords needs to be handled with special care,
as the whole chord uses the pitch of the first note as its base pitch.
So, after converting all notes in the chord, we have to reset the
global state variable to the pitch of the first note.

Also added myselfs to the copyright output.
python/musicexp.py
scripts/musicxml2ly.py