Various synth tweaks

This commit is contained in:
yaw-man 2022-10-29 14:31:09 -03:00
parent a9d112d757
commit cbdddd6bbc
5 changed files with 14 additions and 14 deletions

View File

@ -1,5 +1,5 @@
dpf_add_plugin(yaw-tab-shepard
TARGETS vst2
TARGETS vst2 jack
FILES_DSP
dsp.cpp
synth.cpp

View File

@ -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

View File

@ -4,7 +4,7 @@ Synth::Synth(double sampleRate){
setSampleRate(48000.0, sampleRate);
}
inline void Synth::resetPhase(){
void Synth::resetPhase(){
spectrumPhase = 0.0;
}

View File

@ -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

View File

@ -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