pls test slider
@@ -83,7 +83,17 @@ for x in range(len(my_info)):
start_index = int(my_info[x].time/1000 * rate)
if not type(my_info[x].more).__name__ == "Spinner":
+ if x < len(beatmap_info) and "slider" in beatmap_info[x]["type"]:
arrow_time_list = []
+ print(beatmap_info[x]["time"])
+ for a in range(beatmap_info[x]["repeated"]):
+ arrow_time_list.append(beatmap_info[x]["time"] + beatmap_info[x]["duration"] * a+1)
+
+ if my_info[x].time < beatmap_info[x]["time"] + beatmap_info[x]["duration"] * beatmap_info[x]["repeated"]:
+ for abc in arrow_time_list:
+ start_index2 = int(abc/1000 * rate)
+ z[start_index2:start_index2 + len(s)] += s * 0.5
+ else:
spinSpeedup = 6
if my_info[x].hitresult == None:
continue
@@ -96,7 +106,6 @@ for x in range(len(my_info)):
elif type(my_info[x].more).__name__ == "Spinner":
- arrow_time_list = []
if int(my_info[x].more.rotate) >= 180:
if my_info[x].time/1000 < spinRotationTime:
pass
@@ -113,15 +122,7 @@ for x in range(len(my_info)):
z[start_index:start_index + len(b)] += b * 0.5
spinBonusTime = my_info[x].time/1000 + length_bonus
- if x < len(beatmap_info) and "slider" in beatmap_info[x]["type"]:
- slider_duration = beatmap_info[x]["duration"] * beatmap_info[x]["repeated"]
- for a in range(beatmap_info[x]["repeated"]):
- arrow_time_list.append(beatmap_info[x]["time"] + beatmap_info[x]["duration"] * a+1)
- if my_info[x].time < beatmap_info[x]["time"] + slider_duration:
- for abc in arrow_time_list:
- start_index2 = int(abc/1000 * rate)
- z[start_index2:start_index2 + len(s)] += s * 0.5
write('out.mp3', rate, z)
