Skip to content

Commit

Permalink
marbled ribs
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 8, 2020
1 parent e2d44e9 commit 62531e3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Etterna/Globals/MinaCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,7 @@ Calc::SetHSMod(const vector<NoteInfo>& NoteInfo, vector<float> doot[ModCount])
void
Calc::SetJumpMod(const vector<NoteInfo>& NoteInfo, vector<float> doot[ModCount])
{
static const float min_mod = 0.6f;
doot[Jump].resize(nervIntervals.size());

for (size_t i = 0; i < nervIntervals.size(); i++) {
Expand Down Expand Up @@ -990,18 +991,18 @@ Calc::SetJumpMod(const vector<NoteInfo>& NoteInfo, vector<float> doot[ModCount])
if (taps == 0) // nothing here
doot[Jump][i] = 1.f;
else if (taps < 2) // at least 1 tap but no jumps
doot[Jump][i] = 0.8f;
doot[Jump][i] = min_mod;
else { // at least 1 jump
// creepy banana
float prop = static_cast<float>(jumptaps + 1) /
static_cast<float>(taps - 1) * 20.f / 7.f;
static_cast<float>(taps - 1) * 19.f / 7.f;

float bromide = CalcClamp(3.f - not_stream, 0.975f, 1.f);
// downscale by jack density rather than upscale, like cj
float brop = CalcClamp(3.f - actual_jacks, 0.95f, 1.f);
// clamp the original prop mod first before applying above
float zoot = CalcClamp(sqrt(prop), 0.8f, 1.025f);
doot[Jump][i] = CalcClamp(zoot * bromide * brop, 0.8f, 1.025f);
float zoot = CalcClamp(sqrt(prop), min_mod, 1.025f);
doot[Jump][i] = CalcClamp(zoot * bromide * brop, min_mod, 1.025f);
}
}
if (SmoothPatterns)
Expand All @@ -1010,9 +1011,10 @@ Calc::SetJumpMod(const vector<NoteInfo>& NoteInfo, vector<float> doot[ModCount])

// depress cj rating for non-cj stuff and boost cj rating for cj stuff
void
Calc::SetCJMod(const vector<NoteInfo>& NoteInfo, vector<float> doot[])
Calc::SetCJMod(const vector<NoteInfo>& NoteInfo, vector<float> doot[ModCount])
{
doot[CJ].resize(nervIntervals.size());
doot[CJQuad].resize(nervIntervals.size());
for (size_t i = 0; i < nervIntervals.size(); i++) {
// sequencing stuff
int actual_jacks = 0;
Expand Down

0 comments on commit 62531e3

Please sign in to comment.