(self, msg)
return new_note
Adds and returns a new open note based on the MIDI message.
Adds and returns a new open note based on the MIDI message.
Adds and returns a new open note based on the MIDI message .
def _add_note(self, msg):
    """Adds and returns a new open note based on the MIDI message."""
    new_note = self._captured_sequence.notes.add()
    new_note.start_time = msg.time
    new_note.pitch = msg.note
    new_note.velocity = msg.velocity
    new_note.is_drum = (msg.channel == _DRUM_CHANNEL)
    return new_note
def _add_note ( self , msg ) : new_note = self . _captured_sequence . notes . add ( ) new_note . start_time = msg . time new_note . pitch = msg . note new_note . velocity = msg . velocity new_note . is_drum = ( msg . channel == _DRUM_CHANNEL ) return new_note