Пример #1
0
緑線でノーツ間を均等にします
正直タイミングがつかめないのでプレイする側は最悪です
"""

source_file = r""
aveBPM = 170

beat = 4
sample_set = 1
sample_index = 0
volume = 100
effects = 0

## Main ##

parsed_file = parser.parsefile(source_file)
process_timingpoint = list()
for timingpoint_i in range(len(parsed_file.TimingPoints)):
	timingpoint = parsed_file.TimingPoints[timingpoint_i]
	process_timingpoint.append(timingpoint)
	if timingpoint.inherited: continue

	target_hitobjects: List[classes.HitObject]

	next_timingpoint_i = 1
	next_timingpoint = None
	while timingpoint_i + next_timingpoint_i != len(parsed_file.TimingPoints):
		test_timingpoint = parsed_file.TimingPoints[timingpoint_i + next_timingpoint_i]
		if test_timingpoint.inherited:
			next_timingpoint_i += 1
		else:
Пример #2
0
source_file = r""

target_start_offset = 29730
target_end_offset = 31830

avgbpm = 60

beat = 4
sample_set = 1
sample_index = 1
volume = 100
effects = 0

## Main ##

parsed_map = parser.parsefile(source_file)

target_hitobjects = [
    output for output in parsed_map.HitObjects if
    output.offset >= target_start_offset and output.offset <= target_end_offset
]

i = int(target_start_offset)
result_object = classes.ParsedBeatmap([], [])
while (i <= target_end_offset):
    result_object.TimingPoints.append(
        classes.TimingPoint(i, 0.2, beat, sample_set, sample_index, volume,
                            False, effects))
    i += 1

    if i == target_end_offset:
Пример #3
0
from Relium import calcurate, parser

print(len(parser.parsefile(r"").TimingPoints))