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

Classes

struct  FilterPayload

Namespaces

namespace  sst
 Parent namespace for all Surge Synth Team code.
namespace  sst::filtersplusplus
 configuration_selector contains a set of useful functions to genreate uis and allow users to navigate the configuration space more naturally than the simple flat list in the core api.
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;

Referenced by FilterPayload::availableModelConfigurations(), and FilterPayload::resolveLegacyTypeFor().

◆ 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;