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

#include <LinkwitzRiley.h>

Public Member Functions

void init ()
void setCoeff (float crossoverFreq, float srInv)
void step (float L, float R, float &lowL, float &lowR, float &highL, float &highR)
template<int blockSize>
void setCoeffForBlock (float crossoverFreq, float srInv)
template<int blockSize>
void retainCoeffForBlock ()
void processBlockStep (float L, float R, float &lowL, float &lowR, float &highL, float &highR)
template<int blockSize>
void processBlock (const float *const inL, const float *const inR, float *lowL, float *lowR, float *highL, float *highR)

Public Attributes

CytomicSVF stage1
CytomicSVF stage2
SIMD_M128 da1 {SIMD_MM(setzero_ps)()}
SIMD_M128 da2 {SIMD_MM(setzero_ps)()}
SIMD_M128 da3 {SIMD_MM(setzero_ps)()}
bool firstBlock {true}

Static Public Attributes

static constexpr float butterworthRes {0.2928932188134524f}
static constexpr std::array< CytomicSVF::Mode, 4 > crossoverModes

Member Function Documentation

◆ init()

void init ( )

References stage1, and stage2.

◆ setCoeff()

void setCoeff ( float crossoverFreq,
float srInv )

References butterworthRes, crossoverModes, stage1, and stage2.

Referenced by setCoeffForBlock().

◆ step()

void step ( float L,
float R,
float & lowL,
float & lowR,
float & highL,
float & highR )

References L, stage1, stage2, and CytomicSVF::stepSSE().

Referenced by processBlockStep().

◆ setCoeffForBlock()

template<int blockSize>
void setCoeffForBlock ( float crossoverFreq,
float srInv )

References da1, da2, da3, firstBlock, LR_MUL, LR_SUB, setCoeff(), and stage1.

◆ retainCoeffForBlock()

template<int blockSize>
void retainCoeffForBlock ( )

References da1, da2, and da3.

◆ processBlockStep()

void processBlockStep ( float L,
float R,
float & lowL,
float & lowR,
float & highL,
float & highR )

References da1, da2, da3, L, LR_ADD, stage1, and step().

Referenced by processBlock().

◆ processBlock()

template<int blockSize>
void processBlock ( const float *const inL,
const float *const inR,
float * lowL,
float * lowR,
float * highL,
float * highR )

References processBlockStep().

Member Data Documentation

◆ stage1

◆ stage2

CytomicSVF stage2

Referenced by init(), setCoeff(), and step().

◆ butterworthRes

float butterworthRes {0.2928932188134524f}
staticconstexpr

Referenced by setCoeff().

◆ crossoverModes

std::array<CytomicSVF::Mode, 4> crossoverModes
staticconstexpr
Initial value:

Referenced by setCoeff().

◆ da1

SIMD_M128 da1 {SIMD_MM(setzero_ps)()}

◆ da2

SIMD_M128 da2 {SIMD_MM(setzero_ps)()}

◆ da3

SIMD_M128 da3 {SIMD_MM(setzero_ps)()}

◆ firstBlock

bool firstBlock {true}

Referenced by setCoeffForBlock().


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