From e007063e92c5171fd517b5971db2dc65ec2cccc6 Mon Sep 17 00:00:00 2001 From: Zithia Satazaki Date: Sun, 27 Mar 2022 20:01:44 -0400 Subject: [PATCH] shut up testsynth --- notes | 9 ++++++++- xybrid/nodes/instrument/testsynth.cpp | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/notes b/notes index 253bfd7..51f4a2e 100644 --- a/notes +++ b/notes @@ -35,7 +35,14 @@ TODO { about-license info } - - templatize svfilter and have mono version for synth use + pool I guess + + implement dlmalloc as backend for some things + + more ui options for laptop stuff { + invert scrollwheel (knobs) + maybe scroll sensitivity + } revert-to-saved menu action diff --git a/xybrid/nodes/instrument/testsynth.cpp b/xybrid/nodes/instrument/testsynth.cpp index 44bcb76..7252392 100644 --- a/xybrid/nodes/instrument/testsynth.cpp +++ b/xybrid/nodes/instrument/testsynth.cpp @@ -34,7 +34,7 @@ namespace { const double PI = std::atan(1)*4; const double SEMI = std::pow(2.0, 1.0/12.0); - double fOsc(double& time) { + [[maybe_unused]] double fOsc(double& time) { time = std::fmod(time, 2.0); auto a = 0.0; @@ -96,7 +96,7 @@ void TestSynth::process() { //qDebug() << "rate" << rate << "note" << note; for (size_t s = 0; s < ts; s++) { - double ip = std::floor(osc); + /*double ip = std::floor(osc); double fp = osc - ip; size_t lutIndex = static_cast(fp*NodeLib::LUT_STEPS) % NodeLib::LUT_STEPS; auto& pt = NodeLib::resamplerLUT[lutIndex]; @@ -106,7 +106,7 @@ void TestSynth::process() { auto si = ii+static_cast(i); //if (si >= 0 && si < static_cast(smp->length())) out += (*smp)[static_cast(si)] * pt[i]; } - (*p)[s] = out; + (*p)[s] = out;*/ osc += rate;