More examples and some minor fixes
This commit is contained in:
@ -224,6 +224,10 @@ class Pitch(Event):
|
||||
def get_octave(self):
|
||||
"""Getter for octave"""
|
||||
return self.octave
|
||||
|
||||
def get_beat(self):
|
||||
"""Getter for beat"""
|
||||
return self.beat
|
||||
|
||||
def get_pitch_class(self):
|
||||
"""Getter for pitche"""
|
||||
|
||||
@ -555,6 +555,8 @@ class ListOperation(Sequence):
|
||||
outcome = __chord_operation(first, second, False, options)
|
||||
elif isinstance(second, Chord):
|
||||
outcome = __chord_operation(second, first, True, options)
|
||||
elif isinstance(first, Rest) or isinstance(second, Rest):
|
||||
outcome = Rest(duration=first.get_duration())
|
||||
else:
|
||||
outcome = Pitch(
|
||||
pitch_class=operation(
|
||||
|
||||
Reference in New Issue
Block a user