13 const CalcPatternMod _pmod = TheThing;
14 const std::string name =
"TheThingMod";
18 float min_mod = 0.15F;
23 float group_tol = 35.F;
24 float step_tol = 17.5F;
27 const std::vector<std::pair<std::string, float*>> _params{
28 {
"min_mod", &min_mod },
29 {
"max_mod", &max_mod },
34 {
"scaler", &scaler },
36#pragma endregion params and param map
42#pragma region generic functions
43 void setup() { tt.set_params(group_tol, step_tol, scaler); }
47 void advance_sequencing(
const float& ms_now,
const unsigned& notes)
52 auto operator()() ->
float
55 tt.mod_parts[0] + tt.mod_parts[1] + tt.mod_parts[2] + tt.mod_parts[3];
57 pmod = std::clamp(base + pmod, min_mod, max_mod);
74 const CalcPatternMod _pmod = TheThing2;
75 const std::string name =
"TheThing2Mod";
79 float min_mod = 0.15F;
84 float group_tol = 35.F;
85 float step_tol = 17.5F;
88 const std::vector<std::pair<std::string, float*>> _params{
89 {
"min_mod", &min_mod },
90 {
"max_mod", &max_mod },
95 {
"scaler", &scaler },
97#pragma endregion params and param map
101 float pmod = min_mod;
103#pragma region generic functions
104 void setup() { tt2.set_params(group_tol, step_tol, scaler); }
108 void advance_sequencing(
const float& ms_now,
const unsigned& notes)
113 auto operator()() ->
float
115 pmod = tt2.mod_parts[0] + tt2.mod_parts[1] + tt2.mod_parts[2] +
118 pmod = std::clamp(base + pmod, min_mod, max_mod);