void KPAOS4Checker::check() { QString inPort(Settings::get().getMidiInPort()); QString outPort(Settings::get().getMidiOutPort()); if(inPort.isEmpty() || outPort.isEmpty()) { SettingsDialog settingsDialog(nullptr); settingsDialog.exec(); inPort = Settings::get().getMidiInPort(); outPort = Settings::get().getMidiOutPort(); } if(Midi::get().openPorts(inPort, outPort)) { QEventLoop el; el.connect(this, &KPAOS4Checker::stopLoop, &el, &QEventLoop::quit); el.connect(&stompDelayObj, &Stomp::onOffReceived, this, &KPAOS4Checker::onOfReceived); el.connect(mTimer, &QTimer::timeout, this, &KPAOS4Checker::timerTimeout); mTimer->start(500); stompDelayObj.requestOnOff(); el.exec(); el.disconnect(this, &KPAOS4Checker::stopLoop, &el, &QEventLoop::quit); el.disconnect(&stompDelayObj, &Stomp::onOffReceived, this, &KPAOS4Checker::onOfReceived); el.disconnect(mTimer, &QTimer::timeout, this, &KPAOS4Checker::timerTimeout); } }
void MidiTrack::updateSoloStates(bool noDec) { //if (noDec && !_solo) if (noDec && !_solo) return; _tmpSoloChainTrack = this; _tmpSoloChainDoIns = false; _tmpSoloChainNoDec = noDec; updateSoloState(); #if 0 // not required anymore since we create full synth audio ports if (outPort() >= 0) { //MidiDevice *md = midiPorts[outPort()].device(); //if (md && md->isSynthPlugin()) //((SynthPluginDevice*) md)->updateInternalSoloStates(); } #endif }
void DummyFilter::processData() { outPort(0)->setFilterData(inPort(0)->filterData()); setAlreadyProcessed(); }