From cbdddd6bbc4506d17d5a76e22351cf7feb74eeeb Mon Sep 17 00:00:00 2001 From: yaw-man Date: Sat, 29 Oct 2022 14:31:09 -0300 Subject: [PATCH] Various synth tweaks --- src/yaw-shepard/CMakeLists.txt | 2 +- src/yaw-shepard/dsp.cpp | 8 ++++---- src/yaw-shepard/synth.cpp | 2 +- src/yaw-tab/dsp.cpp | 8 ++++---- src/yaw-vowel/dsp.cpp | 8 ++++---- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/yaw-shepard/CMakeLists.txt b/src/yaw-shepard/CMakeLists.txt index 3e23d80..c53db9d 100644 --- a/src/yaw-shepard/CMakeLists.txt +++ b/src/yaw-shepard/CMakeLists.txt @@ -1,5 +1,5 @@ dpf_add_plugin(yaw-tab-shepard - TARGETS vst2 + TARGETS vst2 jack FILES_DSP dsp.cpp synth.cpp diff --git a/src/yaw-shepard/dsp.cpp b/src/yaw-shepard/dsp.cpp index 430bbe5..6f93a66 100644 --- a/src/yaw-shepard/dsp.cpp +++ b/src/yaw-shepard/dsp.cpp @@ -3,10 +3,10 @@ START_NAMESPACE_DISTRHO -class TabPlugin : public Plugin +class ShepPlug : public Plugin { public: - TabPlugin() + ShepPlug() : Plugin(kParameterCount, 0, 0), sampleRate(getSampleRate()), synth(sampleRate), @@ -122,12 +122,12 @@ private: bool parity = false; Synth synth; - DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(TabPlugin) + DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ShepPlug) }; Plugin* createPlugin() { - return new TabPlugin(); + return new ShepPlug(); } END_NAMESPACE_DISTRHO diff --git a/src/yaw-shepard/synth.cpp b/src/yaw-shepard/synth.cpp index 4a8136e..22e0808 100644 --- a/src/yaw-shepard/synth.cpp +++ b/src/yaw-shepard/synth.cpp @@ -4,7 +4,7 @@ Synth::Synth(double sampleRate){ setSampleRate(48000.0, sampleRate); } -inline void Synth::resetPhase(){ +void Synth::resetPhase(){ spectrumPhase = 0.0; } diff --git a/src/yaw-tab/dsp.cpp b/src/yaw-tab/dsp.cpp index 0091087..aea255c 100644 --- a/src/yaw-tab/dsp.cpp +++ b/src/yaw-tab/dsp.cpp @@ -2,10 +2,10 @@ START_NAMESPACE_DISTRHO -class TabPlugin : public Plugin +class ShepPlug : public Plugin { public: - TabPlugin() + ShepPlug() : Plugin(kParameterCount, 0, 0), sampleRate(getSampleRate()) { @@ -124,12 +124,12 @@ private: double sampleRate; bool parity = false; - DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(TabPlugin) + DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ShepPlug) }; Plugin* createPlugin() { - return new TabPlugin(); + return new ShepPlug(); } END_NAMESPACE_DISTRHO diff --git a/src/yaw-vowel/dsp.cpp b/src/yaw-vowel/dsp.cpp index ba4a4c1..3b4aa24 100644 --- a/src/yaw-vowel/dsp.cpp +++ b/src/yaw-vowel/dsp.cpp @@ -3,10 +3,10 @@ START_NAMESPACE_DISTRHO -class TabPlugin : public Plugin +class ShepPlug : public Plugin { public: - TabPlugin() + ShepPlug() : Plugin(kParameterCount, 0, 0), hzNyq(0.5 * getSampleRate()) { @@ -101,12 +101,12 @@ private: bool parity = false; Filter filter; - DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(TabPlugin) + DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ShepPlug) }; Plugin* createPlugin() { - return new TabPlugin(); + return new ShepPlug(); } END_NAMESPACE_DISTRHO