taplwastaken

Python script for timing points on Strong One (Masked Man)

Jul 17th, 2025 (edited)
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.88 KB | None | 0 0
  1. song_length = 68000
  2. offset = 105
  3.  
  4. bpm_list = [
  5.     # (x, y), = bpm, beats
  6.     (126, 3),
  7.     (180, 2),
  8.     (236, 1),
  9.     (126, 1),
  10.     (102, 1),
  11. ]
  12.  
  13. timing_points = [(offset, bpm_list[0][0])]
  14. current_time = offset
  15. index = 0
  16.  
  17. while True:
  18.     bpm, beats = bpm_list[index]
  19.     beat_duration = 60000 / bpm
  20.     segment_duration = beat_duration * beats
  21.     next_time = current_time + segment_duration
  22.    
  23.     if next_time > song_length:
  24.         break
  25.    
  26.     index = (index + 1) % len(bpm_list)
  27.     next_bpm = bpm_list[index][0]
  28.     timing_points.append((next_time, next_bpm))
  29.     current_time = next_time
  30.  
  31. print("TimingPoints:")
  32. for start_time, bpm in timing_points:
  33.     print(f"- StartTime: {start_time:.0f}") # Changed it from .6f to .0f (cus Heki wanted me to remove all decimals: https://two.quavergame.com/mapsets/41293/ranking#rs-comment34783)
  34.     print(f"  Bpm: {bpm}")
Advertisement
Add Comment
Please, Sign In to add comment