]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix style nits.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 20 Aug 2007 03:43:28 +0000 (00:43 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 20 Aug 2007 03:43:28 +0000 (00:43 -0300)
scripts/musicxml2ly.py

index 9a09fa2dc50e90150293d806c44a23ad003d875a..373dd5d1f10e25e78f84dea438388df5c6d4a91e 100644 (file)
@@ -495,9 +495,9 @@ def musicxml_voice_to_lily_voice (voice):
         
         # The <notation> element can have the following children (+ means implemented, ~ partially, - not):
         # +tied | +slur | +tuplet | glissando | slide | 
-             # ornaments | technical | articulations | dynamics |
-             # +fermata | arpeggiate | non-arpeggiate | 
-             # accidental-mark | other-notation
+        #    ornaments | technical | articulations | dynamics |
+        #    +fermata | arpeggiate | non-arpeggiate | 
+        #    accidental-mark | other-notation
         if notations:
             if notations.get_tuplet():
                 tuplet_event = notations.get_tuplet()
@@ -611,12 +611,12 @@ def musicxml_voice_to_lily_voice (voice):
 
 
 def musicxml_id_to_lily (id):
-    digits = ['Zero', 'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight',
-              'Nine', 'Ten']
+    digits = ['Zero', 'One', 'Two', 'Three', 'Four', 'Five',
+              'Six', 'Seven', 'Eight', 'Nine', 'Ten']
     
-    for dig in digits:
-        d = digits.index (dig)
-        id = re.sub ('%d' % d, dig, id)
+    for digit in digits:
+        d = digits.index (digit)
+        id = re.sub ('%d' % d, digit, id)
 
     id = re.sub  ('[^a-zA-Z]', 'X', id)
     return id