示例#1
0
 def _effectChanged(self):
     for effect in self.effectsGroup.children():
         if not isinstance(effect, QRadioButton):
             continue
         if effect.isChecked():
             self._currentHeadData.effect = str(effect.text()).lower()
             if not self.muteButton.isChecked():
                 DBMidi.playHeadData(self._currentHeadData)
             break
示例#2
0
 def _effectChanged(self):
     for effect in self.effectsGroup.children():
         if not isinstance(effect, QRadioButton):
             continue
         if effect.isChecked():
             self._currentHeadData.effect = str(effect.text()).lower()
             if not self.muteButton.isChecked():
                 DBMidi.playHeadData(self._currentHeadData)
             break
示例#3
0
 def _noteHeadChanged(self):
     self._populateCurrentNoteHead()
     headData = self._currentHeadData
     self.volumeSlider.setValue(headData.midiVolume)
     midiIndex = self.midiNoteCombo.findData(QVariant(headData.midiNote))
     self.midiNoteCombo.setCurrentIndex(midiIndex)
     self._setEffect(headData.effect)
     if not self.muteButton.isChecked():
         DBMidi.playHeadData(self._currentHeadData)
     self._checkHeadButtons()
     self._setNotation()
示例#4
0
 def _noteHeadChanged(self):
     self._populateCurrentNoteHead()
     headData = self._currentHeadData
     self.volumeSlider.setValue(headData.midiVolume)
     midiIndex = self.midiNoteCombo.findData(QVariant(headData.midiNote))
     self.midiNoteCombo.setCurrentIndex(midiIndex)
     self._setEffect(headData.effect)
     if not self.muteButton.isChecked():
         DBMidi.playHeadData(self._currentHeadData)
     self._checkHeadButtons()
     self._setNotation()
示例#5
0
 def _midiNoteChanged(self):
     midiNote = self.midiNoteCombo.currentIndex()
     midiNote = self.midiNoteCombo.itemData(midiNote).toInt()[0]
     self._currentHeadData.midiNote = midiNote
     if not self.muteButton.isChecked():
         DBMidi.playHeadData(self._currentHeadData)
示例#6
0
 def _midiNoteChanged(self):
     self._setMidiNote()
     if not self.muteButton.isChecked():
         DBMidi.playHeadData(self._currentHeadData)
示例#7
0
 def _noteHeadChanged(self):
     self._setNoteHeadInfo()
     if not self.muteButton.isChecked():
         DBMidi.playHeadData(self._currentHeadData)
示例#8
0
 def _drumChanged(self):
     self._setDrumInfo()
     if not self.muteButton.isChecked():
         DBMidi.playHeadData(self._currentHeadData)
示例#9
0
 def _midiNoteChanged(self):
     midiNote = self.midiNoteCombo.currentIndex()
     midiNote = self.midiNoteCombo.itemData(midiNote).toInt()[0]
     self._currentHeadData.midiNote = midiNote
     if not self.muteButton.isChecked():
         DBMidi.playHeadData(self._currentHeadData)