Exemplo n.º 1
0
 def loadSettings(self):
     output_port = midihub.default_output()
     input_port = midihub.default_input()
     s = QSettings()
     s.beginGroup("midi")
     self._playerPort.setEditText(s.value("player/output_port", output_port, str))
     self._inputPort.setEditText(s.value("midi/input_port", input_port, str))
Exemplo n.º 2
0
 def open(self):
     s = QSettings()
     self._portname = s.value("midi/input_port", midihub.default_input(), type(""))
     self._pollingtime = s.value("midi/polling_time", 10, int)
     self._portmidiinput = midihub.input_by_name(self._portname)
     
     self._listener = Listener(self._portmidiinput, self._pollingtime)
     QObject.connect(self._listener, SIGNAL("caughtevent"), self.analyzeevent)
Exemplo n.º 3
0
 def open(self):
     s = QSettings()
     self._portname = s.value("midi/input_port", midihub.default_input(), str)
     self._pollingtime = s.value("midi/polling_time", 10, int)
     self._portmidiinput = midihub.input_by_name(self._portname)
     
     self._listener = Listener(self._portmidiinput, self._pollingtime)
     self._listener.NoteEventSignal.connect(self.analyzeevent)