]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/musedata2ly.py
* scripts/musedata2ly.py (): idem
[lilypond.git] / scripts / musedata2ly.py
index 99d74fb764298e516d08a4bac2a29d3dd6b9b800..dd6eaabdb569a8d6492b10eba293256cec803372 100644 (file)
@@ -226,27 +226,22 @@ class Chord:
 
                sd = sd + '.' * self.dots
 
-               str = ')' * len (self.slurstart) + str
-               
                for p in self.pitches:
                        if str:
                                str = str + ' ' 
-                       str = str + pitch_to_lily_string (p) + sd
-               str = str + '(' * len (self.slurstart)
+                       str = str + pitch_to_lily_string (p) 
                
+               if len (self.pitches) > 1:
+                       str = '<<%s>>' % str
+               elif len (self.pitches) == 0:
+                       str = 'r'
 
+               str = str + sd + '-(' * len (self.slurstart) + '-)' * len (self.slurstart) 
                for s in self.scripts:
                        str = str + '-' + s
 
                str = self.note_prefix +str  + self.note_suffix
-               
-               if len (self.pitches) > 1:
-                       str = '<%s>' % str
-               elif len (self.pitches) == 0:
-                       str = 'r' + sd
-
                str = self.chord_prefix + str + self.chord_suffix
-               
                return str
 
 class Measure_start: