Skip to content

Commit d4cc0f1

Browse files
committed
clean up
1 parent caad9ed commit d4cc0f1

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

processing.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)