Various synth tweaks
This commit is contained in:
parent
a9d112d757
commit
cbdddd6bbc
|
@ -1,5 +1,5 @@
|
||||||
dpf_add_plugin(yaw-tab-shepard
|
dpf_add_plugin(yaw-tab-shepard
|
||||||
TARGETS vst2
|
TARGETS vst2 jack
|
||||||
FILES_DSP
|
FILES_DSP
|
||||||
dsp.cpp
|
dsp.cpp
|
||||||
synth.cpp
|
synth.cpp
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
START_NAMESPACE_DISTRHO
|
START_NAMESPACE_DISTRHO
|
||||||
|
|
||||||
class TabPlugin : public Plugin
|
class ShepPlug : public Plugin
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TabPlugin()
|
ShepPlug()
|
||||||
: Plugin(kParameterCount, 0, 0),
|
: Plugin(kParameterCount, 0, 0),
|
||||||
sampleRate(getSampleRate()),
|
sampleRate(getSampleRate()),
|
||||||
synth(sampleRate),
|
synth(sampleRate),
|
||||||
|
@ -122,12 +122,12 @@ private:
|
||||||
bool parity = false;
|
bool parity = false;
|
||||||
|
|
||||||
Synth synth;
|
Synth synth;
|
||||||
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(TabPlugin)
|
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ShepPlug)
|
||||||
};
|
};
|
||||||
|
|
||||||
Plugin* createPlugin()
|
Plugin* createPlugin()
|
||||||
{
|
{
|
||||||
return new TabPlugin();
|
return new ShepPlug();
|
||||||
}
|
}
|
||||||
|
|
||||||
END_NAMESPACE_DISTRHO
|
END_NAMESPACE_DISTRHO
|
||||||
|
|
|
@ -4,7 +4,7 @@ Synth::Synth(double sampleRate){
|
||||||
setSampleRate(48000.0, sampleRate);
|
setSampleRate(48000.0, sampleRate);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void Synth::resetPhase(){
|
void Synth::resetPhase(){
|
||||||
spectrumPhase = 0.0;
|
spectrumPhase = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
START_NAMESPACE_DISTRHO
|
START_NAMESPACE_DISTRHO
|
||||||
|
|
||||||
class TabPlugin : public Plugin
|
class ShepPlug : public Plugin
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TabPlugin()
|
ShepPlug()
|
||||||
: Plugin(kParameterCount, 0, 0),
|
: Plugin(kParameterCount, 0, 0),
|
||||||
sampleRate(getSampleRate())
|
sampleRate(getSampleRate())
|
||||||
{
|
{
|
||||||
|
@ -124,12 +124,12 @@ private:
|
||||||
double sampleRate;
|
double sampleRate;
|
||||||
bool parity = false;
|
bool parity = false;
|
||||||
|
|
||||||
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(TabPlugin)
|
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ShepPlug)
|
||||||
};
|
};
|
||||||
|
|
||||||
Plugin* createPlugin()
|
Plugin* createPlugin()
|
||||||
{
|
{
|
||||||
return new TabPlugin();
|
return new ShepPlug();
|
||||||
}
|
}
|
||||||
|
|
||||||
END_NAMESPACE_DISTRHO
|
END_NAMESPACE_DISTRHO
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
START_NAMESPACE_DISTRHO
|
START_NAMESPACE_DISTRHO
|
||||||
|
|
||||||
class TabPlugin : public Plugin
|
class ShepPlug : public Plugin
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TabPlugin()
|
ShepPlug()
|
||||||
: Plugin(kParameterCount, 0, 0),
|
: Plugin(kParameterCount, 0, 0),
|
||||||
hzNyq(0.5 * getSampleRate())
|
hzNyq(0.5 * getSampleRate())
|
||||||
{
|
{
|
||||||
|
@ -101,12 +101,12 @@ private:
|
||||||
bool parity = false;
|
bool parity = false;
|
||||||
Filter filter;
|
Filter filter;
|
||||||
|
|
||||||
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(TabPlugin)
|
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ShepPlug)
|
||||||
};
|
};
|
||||||
|
|
||||||
Plugin* createPlugin()
|
Plugin* createPlugin()
|
||||||
{
|
{
|
||||||
return new TabPlugin();
|
return new ShepPlug();
|
||||||
}
|
}
|
||||||
|
|
||||||
END_NAMESPACE_DISTRHO
|
END_NAMESPACE_DISTRHO
|
||||||
|
|
Loading…
Reference in New Issue