Esempio n. 1
0
 def schedule_note(self, note, start):
     """
     Converts the note into a midi note_on event and schedules its start at the start time and end after its duration
     :param note: Note object
     :param start: start time of the note
     """
     self.schedule_event(MidiUtils.to_note_on_event(note, self.channel), start)
     self.schedule_event(MidiUtils.to_note_off_event(note, self.channel), start + note.duration)