- repeat = node.getElementsByTagName('repeat')[0]
- repeat = {'direction' : repeat.getAttribute('direction'),
- 'times' : int(repeat.getAttribute('times') or 1)}
+ repeatN = node.getElementsByTagName('repeat')[0]
+ repeat = {'direction' : repeatN.getAttribute('direction'),
+ 'times' : int(repeatN.getAttribute('times') or 1)}
+ if location == 'left' :
+ repeat['note'] = measureNotes[0]
+ elif location == 'right' :
+ repeat['note'] = measureNotes[-1]
+ else :
+ raise ValueError(location)