Replace all tabs with spaces in code which is not a dependency
This commit is contained in:
@@ -95,8 +95,8 @@ public:
|
||||
FrameLib_SpinLock& operator=(const FrameLib_SpinLock&) = delete;
|
||||
|
||||
bool attempt() { return compareAndSwap(mAtomicLock, false, true); }
|
||||
void acquire() { while(attempt() == false); }
|
||||
void release() { compareAndSwap(mAtomicLock, true, false); }
|
||||
void acquire() { while(attempt() == false); }
|
||||
void release() { compareAndSwap(mAtomicLock, true, false); }
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ uint32_t FrameLib_RandGen::randInt(uint32_t n)
|
||||
used |= used >> 16;
|
||||
|
||||
do
|
||||
i = randInt() & used; // toss unused bits shortens search
|
||||
i = randInt() & used; // toss unused bits shortens search
|
||||
while (i > n);
|
||||
|
||||
return i;
|
||||
|
||||
@@ -49,9 +49,9 @@ private:
|
||||
|
||||
// State
|
||||
|
||||
uint32_t mIncrement;
|
||||
uint32_t mCarry;
|
||||
uint32_t mSTATE[CMWC_LAG_SIZE];
|
||||
uint32_t mIncrement;
|
||||
uint32_t mCarry;
|
||||
uint32_t mSTATE[CMWC_LAG_SIZE];
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -64,7 +64,7 @@ template <class T> void sortAscending(T *data, unsigned long size)
|
||||
|
||||
template <class T> void sortDescending(T *data, unsigned long size)
|
||||
{
|
||||
sortVector<std::less<T>>(data, size);
|
||||
sortVector<std::less<T>>(data, size);
|
||||
}
|
||||
|
||||
template <class T> void sortAscending(T *output, const T *input, unsigned long size)
|
||||
|
||||
@@ -54,7 +54,7 @@ class FrameLib_0dfSVF final : public FrameLib_Processor
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
FrameLib_0dfSVF(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
// Info
|
||||
|
||||
@@ -51,7 +51,7 @@ class FrameLib_OnePole final : public FrameLib_Processor
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_OnePole(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -51,7 +51,7 @@ class FrameLib_OnePoleZero final : public FrameLib_Processor
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_OnePoleZero(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -51,7 +51,7 @@ class FrameLib_Resonant final : public FrameLib_Processor
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_Resonant(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -52,7 +52,7 @@ class FrameLib_SallenAndKey final : public FrameLib_Processor
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_SallenAndKey(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -15,7 +15,7 @@ class FrameLib_Convolve final : public FrameLib_Processor, private Spectral
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor / Destructor
|
||||
|
||||
FrameLib_Convolve(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
@@ -31,7 +31,7 @@ private:
|
||||
// Process
|
||||
|
||||
void process() override;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
// Data
|
||||
|
||||
@@ -15,7 +15,7 @@ class FrameLib_Correlate final : public FrameLib_Processor, private Spectral
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor / Destructor
|
||||
|
||||
FrameLib_Correlate(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
@@ -31,7 +31,7 @@ private:
|
||||
// Process
|
||||
|
||||
void process() override;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
// Data
|
||||
|
||||
@@ -12,12 +12,12 @@ class FrameLib_FFT final : public FrameLib_Processor
|
||||
// Parameter Enums and Info
|
||||
|
||||
enum Mode { kReal, kComplex, kFullSpectrum };
|
||||
enum ParameterList { kMaxLength, kNormalise, kMode };
|
||||
enum ParameterList { kMaxLength, kNormalise, kMode };
|
||||
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor / Destructor
|
||||
|
||||
FrameLib_FFT(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
@@ -34,16 +34,16 @@ private:
|
||||
// Process
|
||||
|
||||
void process() override;
|
||||
|
||||
|
||||
// Data
|
||||
|
||||
// FFT Setup
|
||||
|
||||
FFT_SETUP_D mFFTSetup;
|
||||
|
||||
// Instantiation Params
|
||||
|
||||
unsigned long mMaxFFTSize;
|
||||
// FFT Setup
|
||||
|
||||
FFT_SETUP_D mFFTSetup;
|
||||
|
||||
// Instantiation Params
|
||||
|
||||
unsigned long mMaxFFTSize;
|
||||
Mode mMode;
|
||||
bool mNormalise;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class FrameLib_Multitaper final : public FrameLib_Processor
|
||||
{
|
||||
// Parameter Enums and Info
|
||||
|
||||
enum ParameterList { kMaxLength, kNumTapers };
|
||||
enum ParameterList { kMaxLength, kNumTapers };
|
||||
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
@@ -35,16 +35,16 @@ private:
|
||||
// Process
|
||||
|
||||
void process() override;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
// FFT Setup
|
||||
|
||||
FFT_SETUP_D mFFTSetup;
|
||||
|
||||
// Maximum FFT Size
|
||||
|
||||
unsigned long mMaxFFTSize;
|
||||
|
||||
// FFT Setup
|
||||
|
||||
FFT_SETUP_D mFFTSetup;
|
||||
|
||||
// Maximum FFT Size
|
||||
|
||||
unsigned long mMaxFFTSize;
|
||||
|
||||
static ParameterInfo sParamInfo;
|
||||
};
|
||||
|
||||
@@ -11,7 +11,7 @@ class FrameLib_Window final : public FrameLib_Processor
|
||||
{
|
||||
// Parameter Enums and Info
|
||||
|
||||
enum ParameterList { kWindowType, kSize, kSqrt, kCompensation, kEndPoints };
|
||||
enum ParameterList { kWindowType, kSize, kSqrt, kCompensation, kEndPoints };
|
||||
enum Compensation { kOff, kLinear, kPower, kPowerOverLinear };
|
||||
enum EndPoints { kFirst, kLast, kBoth, kNone };
|
||||
enum WindowTypes { kHann, kHamming, kTriangle, kCosine, kBlackman, kBlackman62, kBlackman70, kBlackman74, kBlackman92, kBlackmanHarris, kFlatTop, kRectangle };
|
||||
@@ -19,7 +19,7 @@ class FrameLib_Window final : public FrameLib_Processor
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor / Destructor
|
||||
|
||||
FrameLib_Window(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
@@ -30,9 +30,9 @@ public:
|
||||
std::string objectInfo(bool verbose) override;
|
||||
std::string inputInfo(unsigned long idx, bool verbose) override;
|
||||
std::string outputInfo(unsigned long idx, bool verbose) override;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
// Helpers
|
||||
|
||||
void updateWindow (unsigned long inSize, EndPoints ends);
|
||||
@@ -41,7 +41,7 @@ private:
|
||||
// Process
|
||||
|
||||
void process() override;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
struct WindowCalculator : public WindowFunctions<double *, WindowTypes>
|
||||
|
||||
@@ -12,12 +12,12 @@ class FrameLib_iFFT final : public FrameLib_Processor
|
||||
// Parameter Enums and Info
|
||||
|
||||
enum Mode { kReal, kComplex, kFullSpectrum };
|
||||
enum ParameterList { kMaxLength, kNormalise, kMode };
|
||||
enum ParameterList { kMaxLength, kNormalise, kMode };
|
||||
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor / Destructor
|
||||
|
||||
FrameLib_iFFT(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
@@ -31,16 +31,16 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
// Process
|
||||
// Process
|
||||
|
||||
void process() override;
|
||||
|
||||
|
||||
// Data
|
||||
|
||||
// FFT Setup
|
||||
|
||||
FFT_SETUP_D mFFTSetup;
|
||||
|
||||
// FFT Setup
|
||||
|
||||
FFT_SETUP_D mFFTSetup;
|
||||
|
||||
// Instantiation Params
|
||||
|
||||
unsigned long mMaxFFTSize;
|
||||
|
||||
@@ -8,13 +8,13 @@ class FrameLib_Register final : public FrameLib_Processor
|
||||
{
|
||||
// Parameter Enums and Info
|
||||
|
||||
enum ParameterList { kMode };
|
||||
enum ParameterList { kMode };
|
||||
enum Modes { kStore, kPass };
|
||||
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_Register(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -8,12 +8,12 @@ class FrameLib_Store final : public FrameLib_Processor
|
||||
{
|
||||
// Parameter Enums and Info
|
||||
|
||||
enum ParameterList { kName };
|
||||
enum ParameterList { kName };
|
||||
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor / Destructor
|
||||
|
||||
FrameLib_Store(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -8,13 +8,13 @@ class FrameLib_Chop final : public FrameLib_Processor
|
||||
{
|
||||
// Parameter Enums and Info
|
||||
|
||||
enum ParameterList { kNumOuts, kSize, kUnits };
|
||||
enum ParameterList { kNumOuts, kSize, kUnits };
|
||||
enum Units { kSamples, kRatio };
|
||||
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_Chop(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -10,12 +10,12 @@ class FrameLib_Join final : public FrameLib_Processor
|
||||
{
|
||||
// Parameter Enums and Info
|
||||
|
||||
enum ParameterList { kNumIns, kTriggers };
|
||||
enum ParameterList { kNumIns, kTriggers };
|
||||
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_Join(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -9,7 +9,7 @@ class FrameLib_NonZero final : public FrameLib_Processor
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_NonZero(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -8,13 +8,13 @@ class FrameLib_Pad final : public FrameLib_Processor
|
||||
{
|
||||
// Parameter Enums and Info
|
||||
|
||||
enum ParameterList { kPadding, kStart, kEnd, kUnits };
|
||||
enum ParameterList { kPadding, kStart, kEnd, kUnits };
|
||||
enum Units { kSamples, kRatio };
|
||||
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_Pad(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -28,14 +28,13 @@ std::string FrameLib_Reverse::outputInfo(unsigned long idx, bool verbose)
|
||||
|
||||
void FrameLib_Reverse::process()
|
||||
{
|
||||
unsigned long size;
|
||||
const double *input = getInput(0, &size);
|
||||
unsigned long size;
|
||||
const double *input = getInput(0, &size);
|
||||
|
||||
requestOutputSize(0, size);
|
||||
allocateOutputs();
|
||||
requestOutputSize(0, size);
|
||||
allocateOutputs();
|
||||
|
||||
double *output = getOutput(0, &size);
|
||||
double *output = getOutput(0, &size);
|
||||
|
||||
std::reverse_copy(input, input+size, output);
|
||||
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ class FrameLib_Reverse final : public FrameLib_Processor
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_Reverse(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -8,14 +8,14 @@ class FrameLib_Shift final : public FrameLib_Processor
|
||||
{
|
||||
// Parameter Enums and Info
|
||||
|
||||
enum ParameterList { kShift, kPadding, kMode, kUnits };
|
||||
enum ParameterList { kShift, kPadding, kMode, kUnits };
|
||||
enum Modes { kPad, kWrap };
|
||||
enum Units { kSamples, kRatio };
|
||||
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_Shift(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -10,13 +10,13 @@ class FrameLib_Split final : public FrameLib_Processor
|
||||
{
|
||||
// Parameter Enums and Info
|
||||
|
||||
enum ParameterList { kSplit, kUnits };
|
||||
enum ParameterList { kSplit, kUnits };
|
||||
enum Units { kSamples, kRatio };
|
||||
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_Split(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
@@ -8,13 +8,13 @@ class FrameLib_Subframe final : public FrameLib_Processor
|
||||
{
|
||||
// Parameter Enums and Info
|
||||
|
||||
enum ParameterList { kStart, kEnd, kUnits };
|
||||
enum ParameterList { kStart, kEnd, kUnits };
|
||||
enum Units { kSamples, kRatio };
|
||||
|
||||
struct ParameterInfo : public FrameLib_Parameters::Info { ParameterInfo(); };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
// Constructor
|
||||
|
||||
FrameLib_Subframe(FrameLib_Context context, FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy);
|
||||
|
||||
Reference in New Issue
Block a user