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