Various synth tweaks
This commit is contained in:
parent
a9d112d757
commit
cbdddd6bbc
|
@ -1,5 +1,5 @@
|
|||
dpf_add_plugin(yaw-tab-shepard
|
||||
TARGETS vst2
|
||||
TARGETS vst2 jack
|
||||
FILES_DSP
|
||||
dsp.cpp
|
||||
synth.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
|
||||
|
|
|
@ -4,7 +4,7 @@ Synth::Synth(double sampleRate){
|
|||
setSampleRate(48000.0, sampleRate);
|
||||
}
|
||||
|
||||
inline void Synth::resetPhase(){
|
||||
void Synth::resetPhase(){
|
||||
spectrumPhase = 0.0;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue