Small improvements

pull/495/head
abscisys 2 years ago
parent 4c8b5f5372
commit cc147daec2
  1. 2
      src/fx.cpp
  2. 1
      src/fx.h
  3. 2
      src/fx_components.h
  4. 25
      src/test/test_fx_helper.cpp

@ -35,5 +35,5 @@ FX::~FX()
void FXBase::prepare()
{
// does nothing by default
}

@ -36,7 +36,6 @@ public:
float32_t getSamplingRate() const;
virtual void reset() = 0;
// virtual void prepare() = 0;
virtual void prepare();
private:

@ -150,7 +150,7 @@ private:
};
typedef InterpolatedSineOscillator LFO;
typedef ComplexLFO LFO;
class JitterGenerator : public FXBase

@ -1,8 +1,8 @@
#include "test_fx_helper.h"
string getScenarioName(int scenario)
std::string getScenarioName(int scenario)
{
stringstream ss;
std::stringstream ss;
bool fxTube = Active(scenario, FXSwitch::FX__Tube);
bool fxChorus = Active(scenario, FXSwitch::FX__Chorus);
@ -26,56 +26,49 @@ string getScenarioName(int scenario)
if(fxChorus)
{
if(!first) ss << ", ";
ss << "Chorus";
ss << "Chrs";
first = false;
}
if(fxPhaser)
{
if(!first) ss << ", ";
ss << "Phaser";
ss << "Phsr";
first = false;
}
if(fxOrbitone)
{
if(!first) ss << ", ";
ss << "Orbitone";
ss << "Orbt";
first = false;
}
if(fxFlanger)
{
if(!first) ss << ", ";
ss << "Flanger";
ss << "Flgr";
first = false;
}
if(fxDelay)
{
if(!first) ss << ", ";
ss << "Delay";
first = false;
}
if(fxDelay)
{
if(!first) ss << ", ";
ss << "Delay";
ss << "Dely";
first = false;
}
if(fxReverb)
{
if(!first) ss << ", ";
ss << "Reverb";
ss << "Revb";
first = false;
}
if(fxShimmer)
{
if(!first) ss << ", ";
ss << "Shimmer";
ss << "Shim";
first = false;
}

Loading…
Cancel
Save