asigalov61
commited on
Commit
•
c5b42ec
1
Parent(s):
8f7775a
Update app.py
Browse files
app.py
CHANGED
@@ -29,12 +29,12 @@ def pitches_counts(melody_score):
|
|
29 |
pcounts = []
|
30 |
|
31 |
count = 0
|
32 |
-
pp =
|
33 |
|
34 |
for p in pitches:
|
35 |
if p == pp:
|
36 |
-
pcounts.append(count)
|
37 |
count += 1
|
|
|
38 |
else:
|
39 |
count = 0
|
40 |
pcounts.append(count)
|
|
|
29 |
pcounts = []
|
30 |
|
31 |
count = 0
|
32 |
+
pp = -1
|
33 |
|
34 |
for p in pitches:
|
35 |
if p == pp:
|
|
|
36 |
count += 1
|
37 |
+
pcounts.append(count)
|
38 |
else:
|
39 |
count = 0
|
40 |
pcounts.append(count)
|