sst-filters
Filters submodule for the Surge Synthesizer
Loading...
Searching...
No Matches
FilterCoefficientMaker_Impl.h File Reference

Namespaces

namespace  sst
 Parent namespace for all Surge Synth Team code.
namespace  sst::filters
 DSP code for Surge filters.
namespace  sst::filters::details
namespace  sst::filters::detail

Macros

#define HAS_MEMBER(x)
#define HAS_STATIC_FN(x)

Typedefs

template<class P>
using if_static_fn_ptr = std::enable_if_t<std::is_function_v<std::remove_pointer_t<P>>>

Functions

template<typename T>
T db_to_linear (T in)
 HAS_MEMBER (tuningApplicationMode)
 HAS_MEMBER (_patch)
void set1f (SIMD_M128 &m, int i, float f)
float get1f (SIMD_M128 m, int i)
float clipscale (float freq, int subtype)
float boundFreq (float freq)
double Map2PoleResonance (double reso, double freq, int subtype)
double Map2PoleResonance_noboost (double reso, double, int subtype)
double Map4PoleResonance (double reso, double freq, int subtype)
template<typename T>
T resoscale (T reso, int subtype)
template<typename T>
T resoscale4Pole (T reso, int subtype)

Variables

constexpr float smooth = 0.2f

Macro Definition Documentation

◆ HAS_MEMBER

#define HAS_MEMBER ( x)
Value:
template <class T, class = void> struct has_member_##x : public std::false_type \
{ \
}; \
template <class T> \
struct has_member_##x<T, std::void_t<decltype(T::x)>> : public std::true_type \
{ \
};

◆ HAS_STATIC_FN

#define HAS_STATIC_FN ( x)
Value:
template <class T, class = void> struct has_static_fn_##x : public std::false_type \
{ \
}; \
template <class T> \
struct has_static_fn_##x<T, if_static_fn_ptr<decltype(&T::x)>> : public std::true_type \
{ \
};