note.fromMIDI implementation