fixed all bugs but yuuitora gonna fine another
@@ -83,17 +83,7 @@ for x in range(len(my_info)):
start_index = int(my_info[x].time/1000 * rate)
-
- if x < len(beatmap_info) and "circle" in beatmap_info[x]["type"]:
- if my_info[x].hitresult == None:
- continue
- elif my_info[x].hitresult == 0:
- z[start_index:start_index + len(m)] += m * 0.5
-
- elif my_info[x].hitresult > 0:
- start_index2 = int(beatmap_info[x]["time"]/1000 * rate)
- z[start_index2:start_index2 + len(y)] += y * 0.5
- elif x < len(beatmap_info) and "slider" in beatmap_info[x]["type"]:
+ if x < len(beatmap_info) and "slider" in beatmap_info[x]["type"] and beatmap_info[x]["repeated"] > 1:
spinSpeedup = 6
arrow_time_list = []
for a in range(beatmap_info[x]["repeated"]):
@@ -104,6 +94,18 @@ for x in range(len(my_info)):
start_index2 = int(abc/1000 * rate)
z[start_index2:start_index2 + len(y)] += y * 0.5
+ elif type(my_info[x].more).__name__ != "Spinner":
+ spinSpeedup = 6
+ if my_info[x].hitresult == None:
+ pass
+
+ elif my_info[x].hitresult > 0:
+ z[start_index:start_index + len(y)] += y * 0.5
+ elif my_info[x].hitresult == 0:
+ z[start_index:start_index + len(m)] += m * 0.5
+
+
+
elif type(my_info[x].more).__name__ == "Spinner":
if int(my_info[x].more.rotate) >= 180:
if my_info[x].time/1000 < spinRotationTime:
@@ -123,7 +125,7 @@ for x in range(len(my_info)):
+write('z.mp3', rate, z[int(0.5*rate):int((len(z)/rate))*rate])
-write('z.mp3', rate, z[int(0.3*rate):int((len(z)/rate))*rate])
end=time.time()
print(end-start)
