def METHOD_NAME(self):
    if not self._portmidiinput:
        self.open()
        if not self._portmidiinput:
            return
    doc = self.widget().mainwindow().currentDocument()
    self._language = documentinfo.docinfo(doc).language() or 'nederlands'
    self._activenotes = 0
    self._listener.start()