Skip to content

Commit

Permalink
remove unused params from wrjt, tune slightly so it nerfs bad files more
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 23, 2020
1 parent b0263dc commit 875ec98
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,15 @@ struct WideRangeJumptrillMod

float min_mod = 0.25F;
float max_mod = 1.F;
float base = 0.4F;

float cv_reset = 0.5F;
float cv_threshhold = 0.15F;
float cv_threshhold = 0.05F;

const vector<pair<std::string, float*>> _params{
{ "window_param", &window_param },

{ "min_mod", &min_mod },
{ "max_mod", &max_mod },
{ "base", &base },

{ "cv_reset", &cv_reset },
{ "cv_threshhold", &cv_threshhold },
};
#pragma endregion params and param map
Expand Down Expand Up @@ -152,8 +148,13 @@ struct WideRangeJumptrillMod
return;
}

if (_mw_jt.get_total_for_window(window) < 20) {
pmod = neutral;
return;
}

pmod =
itvhi.get_taps_windowf(window) / _mw_jt.get_total_for_windowf(window);
itvhi.get_taps_windowf(window) / _mw_jt.get_total_for_windowf(window) * 0.75F;

pmod = CalcClamp(pmod, min_mod, max_mod);
}
Expand Down

0 comments on commit 875ec98

Please sign in to comment.