sst-filters
Filters submodule for the Surge Synthesizer
Loading...
Searching...
No Matches
CytomicSVF Struct Reference

#include <CytomicSVF.h>

Public Types

enum struct  Mode : uint32_t {
  Lowpass , Highpass , Bandpass , Notch ,
  Peak , Allpass , Bell , LowShelf ,
  HighShelf
}

Public Member Functions

void setCoeff (Mode mode, float freq, float res, float srInv, float bellShelfAmp=1.f)
void setCoeff (Mode mode, float freqL, float freqR, float resL, float resR, float srInv, float bellShelfAmpL, float bellShelfAmpR)
void setCoeff (std::array< Mode, 4 > mode, float freq, float res, float srInv, float bellShelfAmp=1.f)
void setCoeffQuadBandpass (float *freq, float res, float srInv)
void setCoeffPostGK (Mode mode, SIMD_M128 bellShelfSSE)
void setCoeffPostGK (std::array< Mode, 4 > mode, SIMD_M128 bellShelfSSE)
void fetchCoeffs (const CytomicSVF &that)
template<int blockSize>
void setCoeffForBlock (Mode mode, float freq, float res, float srInv, float bellShelfAmp=1.f)
template<int blockSize>
void setCoeffForBlock (Mode mode, float freqL, float freqR, float resL, float resR, float srInv, float bellShelfAmpL, float bellShelfAmpR)
template<int blockSize>
void setCoeffForBlockQuadBandpass (float *freq, float res, float srInv)
template<int blockSize>
void retainCoeffForBlock ()
void processBlockStep (float &A, float &B, float &C, float &D)
void processBlockStep (float &L, float &R)
void processBlockStep (float &L)
template<int blockSize>
void processBlockQuad (const float *const in, float *outA, float *outB, float *outC, float *outD)
template<int blockSize>
void processBlock (const float *const inL, const float *const inR, float *outL, float *outR)
template<int blockSize>
void processBlock (const float *const inL, float *outL)
void init ()

Static Public Member Functions

static void step (CytomicSVF &that, float &V)
static void step (CytomicSVF &that, float &L, float &R)
static void step (CytomicSVF &that, float &A, float &B, float &C, float &D)
static SIMD_M128 stepSSE (CytomicSVF &that, SIMD_M128 vin)

Public Attributes

SIMD_M128 ic1eq {SIMD_MM(setzero_ps)()}
SIMD_M128 ic2eq {SIMD_MM(setzero_ps)()}
SIMD_M128 g
SIMD_M128 k
SIMD_M128 gk
SIMD_M128 a1
SIMD_M128 a2
SIMD_M128 a3
SIMD_M128 m0
SIMD_M128 m1
SIMD_M128 m2
SIMD_M128 oneSSE {SETALL(1.0)}
SIMD_M128 negoneSSE {SETALL(-1.0)}
SIMD_M128 twoSSE {SETALL(2.0)}
SIMD_M128 negtwoSSE {SETALL(-2.0)}
SIMD_M128 da1
SIMD_M128 da2
SIMD_M128 da3
SIMD_M128 dm0
SIMD_M128 dm1
SIMD_M128 dm2
bool firstBlock {true}

Member Enumeration Documentation

◆ Mode

enum struct Mode : uint32_t
strong
Enumerator
Lowpass 
Highpass 
Bandpass 
Notch 
Peak 
Allpass 
Bell 
LowShelf 
HighShelf 

Member Function Documentation

◆ setCoeff() [1/3]

void setCoeff ( Mode mode,
float freq,
float res,
float srInv,
float bellShelfAmp = 1.f )

References Bell, DIV, g, k, SETALL, and setCoeffPostGK().

Referenced by setCoeffForBlock(), and setCoeffForBlock().

◆ setCoeff() [2/3]

void setCoeff ( Mode mode,
float freqL,
float freqR,
float resL,
float resR,
float srInv,
float bellShelfAmpL,
float bellShelfAmpR )

References Bell, DIV, g, k, MUL, setCoeffPostGK(), SUB, and twoSSE.

◆ setCoeff() [3/3]

void setCoeff ( std::array< Mode, 4 > mode,
float freq,
float res,
float srInv,
float bellShelfAmp = 1.f )

References Bell, g, k, SETALL, and setCoeffPostGK().

◆ setCoeffQuadBandpass()

void setCoeffQuadBandpass ( float * freq,
float res,
float srInv )

References a1, a2, a3, ADD, DIV, g, gk, k, m0, m1, m2, MUL, oneSSE, SETALL, SUB, and twoSSE.

Referenced by setCoeffForBlockQuadBandpass().

◆ setCoeffPostGK() [1/2]

void setCoeffPostGK ( Mode mode,
SIMD_M128 bellShelfSSE )

◆ setCoeffPostGK() [2/2]

void setCoeffPostGK ( std::array< Mode, 4 > mode,
SIMD_M128 bellShelfSSE )

References A, a1, a2, a3, ADD, Allpass, Bandpass, Bell, DIV, g, gk, Highpass, HighShelf, k, Lowpass, LowShelf, m0, m1, m2, MUL, Notch, oneSSE, and Peak.

◆ fetchCoeffs()

void fetchCoeffs ( const CytomicSVF & that)

References a1, a2, a3, da1, da2, da3, g, gk, k, m0, m1, and m2.

◆ step() [1/3]

void step ( CytomicSVF & that,
float & V )
static

◆ step() [2/3]

void step ( CytomicSVF & that,
float & L,
float & R )
static

References L, and stepSSE().

◆ step() [3/3]

void step ( CytomicSVF & that,
float & A,
float & B,
float & C,
float & D )
static

References A, D, and stepSSE().

◆ stepSSE()

SIMD_M128 stepSSE ( CytomicSVF & that,
SIMD_M128 vin )
static

References a1, a2, a3, ADD, ic1eq, ic2eq, m0, m1, m2, MUL, SUB, and twoSSE.

Referenced by step(), step(), step(), and LinkwitzRileyLR4Crossover::step().

◆ setCoeffForBlock() [1/2]

template<int blockSize>
void setCoeffForBlock ( Mode mode,
float freq,
float res,
float srInv,
float bellShelfAmp = 1.f )

References a1, a2, a3, da1, da2, da3, dm0, dm1, dm2, firstBlock, m0, m1, m2, MUL, SETALL, setCoeff(), and SUB.

◆ setCoeffForBlock() [2/2]

template<int blockSize>
void setCoeffForBlock ( Mode mode,
float freqL,
float freqR,
float resL,
float resR,
float srInv,
float bellShelfAmpL,
float bellShelfAmpR )

References a1, a2, a3, da1, da2, da3, dm0, dm1, dm2, firstBlock, m0, m1, m2, MUL, SETALL, setCoeff(), and SUB.

◆ setCoeffForBlockQuadBandpass()

template<int blockSize>
void setCoeffForBlockQuadBandpass ( float * freq,
float res,
float srInv )

References a1, a2, a3, da1, da2, da3, dm0, dm1, dm2, firstBlock, m0, m1, m2, MUL, SETALL, setCoeffQuadBandpass(), and SUB.

◆ retainCoeffForBlock()

template<int blockSize>
void retainCoeffForBlock ( )

References da1, da2, da3, dm0, dm1, and dm2.

◆ processBlockStep() [1/3]

void processBlockStep ( float & A,
float & B,
float & C,
float & D )

References A, a1, a2, a3, ADD, D, da1, da2, da3, dm0, dm1, dm2, m0, m1, m2, and step().

Referenced by processBlock(), processBlock(), and processBlockQuad().

◆ processBlockStep() [2/3]

void processBlockStep ( float & L,
float & R )

References a1, a2, a3, ADD, da1, da2, da3, dm0, dm1, dm2, L, m0, m1, m2, and step().

◆ processBlockStep() [3/3]

void processBlockStep ( float & L)

References a1, a2, a3, ADD, da1, da2, da3, dm0, dm1, dm2, L, m0, m1, m2, and step().

◆ processBlockQuad()

template<int blockSize>
void processBlockQuad ( const float *const in,
float * outA,
float * outB,
float * outC,
float * outD )

References processBlockStep().

◆ processBlock() [1/2]

template<int blockSize>
void processBlock ( const float *const inL,
const float *const inR,
float * outL,
float * outR )

References processBlockStep().

◆ processBlock() [2/2]

template<int blockSize>
void processBlock ( const float *const inL,
float * outL )

References processBlockStep().

◆ init()

void init ( )

References ic1eq, and ic2eq.

Member Data Documentation

◆ ic1eq

SIMD_M128 ic1eq {SIMD_MM(setzero_ps)()}

Referenced by init(), and stepSSE().

◆ ic2eq

SIMD_M128 ic2eq {SIMD_MM(setzero_ps)()}

Referenced by init(), and stepSSE().

◆ g

◆ k

◆ gk

◆ a1

◆ a2

◆ a3

◆ m0

◆ m1

◆ m2

◆ oneSSE

SIMD_M128 oneSSE {SETALL(1.0)}

◆ negoneSSE

SIMD_M128 negoneSSE {SETALL(-1.0)}

Referenced by setCoeffPostGK().

◆ twoSSE

SIMD_M128 twoSSE {SETALL(2.0)}

◆ negtwoSSE

SIMD_M128 negtwoSSE {SETALL(-2.0)}

Referenced by setCoeffPostGK().

◆ da1

◆ da2

◆ da3

◆ dm0

◆ dm1

◆ dm2

◆ firstBlock

bool firstBlock {true}

The documentation for this struct was generated from the following file: