9 static const bool dbg =
false;
10 static const bool dbg_lv2 =
false;
14 float ms_now = ms_init;
17 int last_last_count = 0;
19 unsigned last_notes = 0;
20 unsigned last_last_notes = 0;
23 bool alternating_chordstream =
false;
24 bool alternating_chord_single =
false;
25 bool gluts_maybe =
false;
26 bool twas_jack =
false;
47 alternating_chordstream =
false;
48 alternating_chord_single =
false;
56 if (!mitvi.basically_vibro) {
61 for (
auto& t : mitvi.row_variations) {
77 if (mitvi.row_variations[2] != 0) {
78 mitvi.basically_vibro =
false;
90 for (
const auto&
id : _calc.col_masks) {
91 if (is_jack_at_col(
id, notes, last_notes)) {
96 if (count > 1 && column_count(last_notes) > 1) {
97 ++mitvi.shared_chord_jacks;
108 ++mitvi.actual_jacks_cj;
115 set_row_variations(mitvi);
125 alternating_chordstream =
126 is_alternating_chord_stream(notes, last_notes, last.last_notes);
127 if (alternating_chordstream) {
128 ++mitvi.definitely_not_jacks;
131 if (alternating_chordstream) {
136 alternating_chord_single =
137 is_alternating_chord_single(count, last.count);
138 if (alternating_chord_single) {
140 mitvi.seriously_not_js -= 3;
144 if (last.count == 1 && count == 1) {
145 mitvi.seriously_not_js =
146 0 > mitvi.seriously_not_js ? 0 : mitvi.seriously_not_js;
147 ++mitvi.seriously_not_js;
153 if (mitvi.seriously_not_js > 3) {
155 mitvi.not_js += mitvi.seriously_not_js;
157 mitvi.not_hs += mitvi.seriously_not_js;
159 }
else if (last.count > 1 && count > 1) {
161 mitvi.not_hs += count;
162 mitvi.not_js += count;
165 if ((notes & last_notes) == 0) {
175 if ((notes & last_notes) == 0 && count > 1 && last_count > 1) {
176 if ((last_notes & last.last_notes) == 0 && last_count > 1) {
177 mitvi.dunk_it =
true;
184 const float& row_time,
185 const int& row_count,
186 const unsigned& row_notes)
189 last_last_count = last.last_count;
190 last_count = last.count;
193 last_last_notes = last.last_notes;
194 last_notes = last.notes;
197 ms_now = ms_from(time, last.time);
199 mitvi._itvi.update_tap_counts(count);
200 basic_row_sequencing(last, mitvi);