From: Erlend Aasland Date: Thu, 31 Jan 2008 13:14:17 +0000 (+0100) Subject: Naming nit: s/EventChord/ChordEvent in python/musicexp.py X-Git-Tag: release/2.11.39-1~5^2~4^2~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9934ca386dc8e47daa3722d0a49c8e8d753fbd75;p=lilypond.git Naming nit: s/EventChord/ChordEvent in python/musicexp.py --- diff --git a/python/musicexp.py b/python/musicexp.py index 8fb4e5c319..60c93521c3 100644 --- a/python/musicexp.py +++ b/python/musicexp.py @@ -519,11 +519,11 @@ class SequentialMusic (NestedMusic): value = None at = len( self.elements ) - 1 while (at >= 0 and - not isinstance (self.elements[at], EventChord) and + not isinstance (self.elements[at], ChordEvent) and not isinstance (self.elements[at], BarLine)): at -= 1 - if (at >= 0 and isinstance (self.elements[at], EventChord)): + if (at >= 0 and isinstance (self.elements[at], ChordEvent)): value = self.elements[at] return value @@ -662,7 +662,7 @@ class Paper: printer.newline () -class EventChord (NestedMusic): +class ChordEvent (NestedMusic): def __init__ (self): NestedMusic.__init__ (self) self.grace_elements = None @@ -1178,7 +1178,7 @@ class MultiMeasureRest(Music): 'elements (list (make-music (quote BarCheck)) (make-music - 'EventChord + 'ChordEvent 'elements (list (make-music 'MultiMeasureRestEvent @@ -1366,7 +1366,7 @@ def test_pitch (): def test_printer (): def make_note (): - evc = EventChord() + evc = ChordEvent() n = NoteEvent() evc.append (n) return n @@ -1396,21 +1396,21 @@ def test_printer (): def test_expr (): m = SequentialMusic() l = 2 - evc = EventChord() + evc = ChordEvent() n = NoteEvent() n.duration.duration_log = l n.pitch.step = 1 evc.insert_around (None, n, 0) m.insert_around (None, evc, 0) - evc = EventChord() + evc = ChordEvent() n = NoteEvent() n.duration.duration_log = l n.pitch.step = 3 evc.insert_around (None, n, 0) m.insert_around (None, evc, 0) - evc = EventChord() + evc = ChordEvent() n = NoteEvent() n.duration.duration_log = l n.pitch.step = 2 @@ -1421,7 +1421,7 @@ def test_expr (): evc.type = 'treble' m.insert_around (None, evc, 0) - evc = EventChord() + evc = ChordEvent() tonic = Pitch () tonic.step = 2 tonic.alteration = -2