From 4ce28c0a053c4c5e4eb1cc769b5c67925d276616 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 22 Feb 2022 00:32:13 -0500 Subject: [PATCH] GUI: one more visualizer fix --- src/gui/pattern.cpp | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/gui/pattern.cpp b/src/gui/pattern.cpp index b2423ea1..c6c78ba8 100644 --- a/src/gui/pattern.cpp +++ b/src/gui/pattern.cpp @@ -719,7 +719,7 @@ void FurnaceGUI::drawPattern() { // note slides ImVec2 arrowPoints[7]; - for (int i=0; iisPlaying()) for (int i=0; isong.chanShow[i]) continue; DivChannelState* ch=e->getChanState(i); if (ch->portaSpeed>0) { @@ -727,20 +727,18 @@ void FurnaceGUI::drawPattern() { col.w*=0.2; float width=patChanX[i+1]-patChanX[i]; - if (e->isPlaying()) { - particles.push_back(Particle( - pitchGrad, - (ch->portaNote<=ch->note)?ICON_FA_CHEVRON_DOWN:ICON_FA_CHEVRON_UP, - off.x+patChanX[i]+fmod(rand(),width)-scrollX, - off.y+fmod(rand(),MAX(1,ImGui::GetWindowHeight())), - 0.0f, - (7.0f+(rand()%5)+pow(ch->portaSpeed,0.7f))*((ch->portaNote<=ch->note)?1:-1), - 0.0f, - 1.0f, - 255.0f, - 15.0f - )); - } + particles.push_back(Particle( + pitchGrad, + (ch->portaNote<=ch->note)?ICON_FA_CHEVRON_DOWN:ICON_FA_CHEVRON_UP, + off.x+patChanX[i]+fmod(rand(),width)-scrollX, + off.y+fmod(rand(),MAX(1,ImGui::GetWindowHeight())), + 0.0f, + (7.0f+(rand()%5)+pow(ch->portaSpeed,0.7f))*((ch->portaNote<=ch->note)?1:-1), + 0.0f, + 1.0f, + 255.0f, + 15.0f + )); if (width>0.1) for (float j=-patChanSlideY[i]; j