We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa5fa35 commit 755657aCopy full SHA for 755657a
src/Etterna/Globals/MinaCalc/SequencingHelpers.h
@@ -18,9 +18,22 @@ static const float finalscaler = 3.632F;
18
static const int max_rows_for_single_interval = 50;
19
20
inline auto
21
-column_count(const int& notes) -> unsigned int
+column_count(const unsigned& notes) -> int
22
{
23
- return notes % 2 + notes / 2 % 2 + notes / 4 % 2 + notes / 8 % 2;
+ // singles
24
+ if (notes == 1U || notes == 2U || notes == 4U || notes == 8U)
25
+ return 1;
26
+
27
+ // hands
28
+ if (notes == 7U || notes == 11U || notes == 13U || notes == 14U)
29
+ return 3;
30
31
+ // quad
32
+ if (notes == 15U)
33
+ return 4;
34
35
+ // everything else is a jump
36
+ return 2;
37
}
38
39
0 commit comments