[Top][All Lists]

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

[PATCHES]: Converting header and lyrics with musicxml2ly

From: Reinhold Kainhofer
Subject: [PATCHES]: Converting header and lyrics with musicxml2ly
Date: Thu, 30 Aug 2007 13:47:56 +0200
User-agent: KMail/1.9.6

Attached is the next set of patches for musicxml2ly, diffed against current 
git by git-format-patch.

The patch that I already sent a few days ago (following Han-Wen's suggestion). 
Use dict.get (...) instead of dict[..], where needed with a default argument 
to simplify the code structure.

Convert all header information (title, composer, editor, arranger, poet, 
copyright) from the XML file to the lilypond \header{..} section.

Bug fix for the previous patch: If an opus number is not found, return '' 
instead of None.

Cleanup of the to (1) use get_class instead of accessing the class 
dict directly (which leads to a KeyError unless the class was manually 
implemented and (2) remove unnecessary manual class definitions.

Convert the lyrics from the XML file to lilypond lyrics.

Some OMR applications convert hyphens in the score to soft-hyphens, which lie 
outside the ascii range. Python's ascii codec will barf on these characters 
and quit the output, so we need to replace them by ordinary hyphens.

Some OMR applications also put spaces into lyrics syllables or start lyrics 
syllables with periods or commas. Lilypond does not like this, so we need to 
wrap all lyrics syllables in quotes to make sure lilypond correctly 
understands them and does not throw an error.


Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden,
 * Financial and Actuarial Mathematics, TU Wien,
 * K Desktop Environment,, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien",

Attachment: 2007-08-29_0001-Coding-style.patch
Description: Text Data

Attachment: 2007-08-29_0002-Convert-score-information-into-the-header-.-const.patch
Description: Text Data

Attachment: 2007-08-29_0003-Fix-knot-in-my-brain-If-no-work-number-or-opus-i.patch
Description: Text Data

Attachment: 2007-08-29_0004-Cleanup-Don-t-use-the-class_dict-directly-but-rathe.patch
Description: Text Data

Attachment: 2007-08-29_0005-Implement-the-conversion-of-lyrics-from-MusicXML-to.patch
Description: Text Data

Attachment: 2007-08-29_0006-Replace-soft-hyphens-in-the-lyrics-created-by-an-OM.patch
Description: Text Data

Attachment: 2007-08-29_0007-The-output-of-some-OMR-applications-contains-spaces.patch
Description: Text Data

reply via email to

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