diff --git a/doc/mainwindow.html b/doc/mainwindow.html index 7928c9f..d80aa40 100644 --- a/doc/mainwindow.html +++ b/doc/mainwindow.html @@ -36,7 +36,7 @@
Note that actual actions in this menu can be configured in settings.
diff --git a/doc/optionsdialog.html b/doc/optionsdialog.html index b473b91..6a1d26d 100644 --- a/doc/optionsdialog.html +++ b/doc/optionsdialog.html @@ -40,7 +40,11 @@- For those who see a rotated and blinking display, try setting + If you are experiencing rotated and blinking visualization, try setting Visualization-Video/Multisampling to 1 or above. If that doesn't solve your problem or you see nothing at all, please send me more details about your problem (graphics card, drivers etc.). diff --git a/qmidiplayer-desktop/qmpchanneleditor.cpp b/qmidiplayer-desktop/qmpchanneleditor.cpp index 445b68e..5343c1c 100644 --- a/qmidiplayer-desktop/qmpchanneleditor.cpp +++ b/qmidiplayer-desktop/qmpchanneleditor.cpp @@ -77,6 +77,7 @@ void qmpChannelEditor::sendCC() player->setCC(ch,76,ui->dRate->value()); player->setCC(ch,77,ui->dDepth->value()); player->setCC(ch,78,ui->dDelay->value()); + qmpMainWindow::getInstance()->invokeCallback("channel.ccchange",nullptr); } void qmpChannelEditor::showEvent(QShowEvent *e) diff --git a/qmidiplayer-desktop/qmppresetselect.cpp b/qmidiplayer-desktop/qmppresetselect.cpp index 8286053..8c28fe6 100644 --- a/qmidiplayer-desktop/qmppresetselect.cpp +++ b/qmidiplayer-desktop/qmppresetselect.cpp @@ -102,6 +102,7 @@ void qmpPresetSelector::on_pbOk_clicked() else if(s=="CC#0")b<<=7; plyr->setChannelPreset(ch,b,p); } + qmpMainWindow::getInstance()->invokeCallback("preset.set",nullptr); close(); } diff --git a/simple-visualization/simplevisualization.cpp b/simple-visualization/simplevisualization.cpp index 71dac7a..c8191b6 100644 --- a/simple-visualization/simplevisualization.cpp +++ b/simple-visualization/simplevisualization.cpp @@ -13,8 +13,11 @@ void qmpSimpleVisualization::init() api->registerOptionUint("","","Keyboard/bcolor"+std::to_string(i),0,0xffffff,0xff66ccff); } p=new qmpKeyboardWindow(api,(QWidget*)api->getMainWindow()); - uihs=api->registerUIHook("main.stop",[this](const void*,void*){this->p->resetAll();},nullptr); - uihsk=api->registerUIHook("main.seek",[this](const void*,void*){this->p->resetAll();},nullptr); + auto refreshfn=[this](const void*,void*){this->p->resetAll();}; + uihs=api->registerUIHook("main.stop",refreshfn,nullptr); + uihsk=api->registerUIHook("main.seek",refreshfn,nullptr); + uihsk=api->registerUIHook("preset.set",refreshfn,nullptr); + uihsk=api->registerUIHook("channel.ccchange",refreshfn,nullptr); } void qmpSimpleVisualization::deinit() {