File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def identify_blastbeats(
112112
113113 # Caveman approach: consider it as blast beat if a given number of consecutive labeled sections contain snare & bassdrum
114114 for i , section in enumerate (sections ):
115- # Edited this part to improve the "counting" functionality. Otherwise a single long blast beat section was being counted as only 1.
115+ # Ugly but necessary for improving the "counting" functionality. Otherwise a single long blast beat section was being counted as only 1.
116116 if hits >= min_hits :
117117 results .append ((sections [blastbeat_start_idx ].start_idx , section .start_idx ))
118118 hits = 0
@@ -121,12 +121,6 @@ def identify_blastbeats(
121121 if hits == 0 :
122122 blastbeat_start_idx = i
123123 hits += 1
124- # else:
125- # if hits >= min_hits:
126- # results.append(
127- # (sections[blastbeat_start_idx].start_idx, section.start_idx)
128- # )
129- # hits = 0
130124 else :
131125 hits = 0
132126
You can’t perform that action at this time.
0 commit comments