From 54b31f7fc14d2f15f1bcbd28f50446ff55b81a87 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 23 Nov 2025 10:59:49 -0500 Subject: [PATCH] get rid of the hack --- src/gui/chanOsc.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gui/chanOsc.cpp b/src/gui/chanOsc.cpp index c7a2f720f..afacbeaa1 100644 --- a/src/gui/chanOsc.cpp +++ b/src/gui/chanOsc.cpp @@ -928,11 +928,9 @@ void FurnaceGUI::drawChanOsc() { } case 'n': { DivChannelState* chanState=e->getChanState(ch); - // ik its pretty hacky but it works - // the templated stuff is after the member we need to access so it shouldnt matter - // and no segfaults should occur - SharedChannel* chan=(SharedChannel*)e->getDispatchChanState(ch); - if (chanState==NULL || chan==NULL || !chan->active) { + if (chanState==NULL) { + text+="---"; + } else if (!chanState->keyOn) { text+="---"; } else { // no more conversion necessary after the note/octave unification :>