Example #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
Example #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
Example #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()
Example #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()
Example #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)
Example #6
0
 def _midiNoteChanged(self):
     self._setMidiNote()
     if not self.muteButton.isChecked():
         DBMidi.playHeadData(self._currentHeadData)
Example #7
0
 def _noteHeadChanged(self):
     self._setNoteHeadInfo()
     if not self.muteButton.isChecked():
         DBMidi.playHeadData(self._currentHeadData)
Example #8
0
 def _drumChanged(self):
     self._setDrumInfo()
     if not self.muteButton.isChecked():
         DBMidi.playHeadData(self._currentHeadData)
Example #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)