Example #1
0
 def p_note_body__pitch__positive_leaf_duration(self, p):
     """
     note_body : pitch positive_leaf_duration
     """
     p[0] = core.Note(p[1], p[2])
Example #2
0
 def p_note_body__positive_leaf_duration(self, p):
     """
     note_body : positive_leaf_duration
     """
     p[0] = core.Note(0, p[1])
Example #3
0
 def p_note_body__pitch(self, p):
     """
     note_body : pitch
     """
     p[0] = core.Note(p[1], self._default_duration)