sst-filters
Filters submodule for the Surge Synthesizer
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
filter_payload.h File Reference

Classes

struct  FilterPayload
 

Namespaces

namespace  sst
 Parent namespace for all Surge Synth Team code.
 
namespace  sst::filtersplusplus
 
namespace  sst::filtersplusplus::details
 

Macros

#define FILTER_MODEL_CASE(model, ns)
 
#define FILTER_MODEL_CASE(model, ns)
 

Macro Definition Documentation

◆ FILTER_MODEL_CASE [1/2]

#define FILTER_MODEL_CASE (   model,
  ns 
)
Value:
case model: \
{ \
namespace ms = ns; \
const auto &s = ms::getModelConfigurations(); \
auto pos = s.find(mc); \
if (pos != s.end()) \
{ \
return pos->second; \
} \
} \
break;

◆ FILTER_MODEL_CASE [2/2]

#define FILTER_MODEL_CASE (   model,
  ns 
)
Value:
case model: \
{ \
namespace ms = ns; \
const auto &s = ms::getModelConfigurations(); \
std::vector<ModelConfig> ret; \
for (const auto &[k, v] : s) \
ret.push_back(k); \
if (sort) \
std::sort(ret.begin(), ret.end()); \
return ret; \
} \
break;