Scans your osu! maps to see if you have any maps that matches the reference rhythm using the time difference between objects with a default leeway of +-1ms to account for osu! rounding errors.
The Danish osu! community wanted to figure out what beatmap was in a video where they only had the audio from the keyboard tapping and some of notes visible, and they also knew the beatmap was 174BPM.
I told them that I could probably make a script to search through all of your beatmaps for the specific pattern. Then, someone in the community recreated the section of the beatmap from the video in the beatmap editor and the process and result can be seen below:
Recreate the rhythm in the osu! beatmap editor and then save. Afterwards copy the contents of the .osu file into reference.osu in the same directory as the find_pattern.py script.
It does not care about the note type, which means that you can even substitude slider ends with hit circles if you want.
osu.2025.01.18.-.14.14.02.01.mp4
python find_pattern.pySide by side comparison from original video and the found beatmap in the editor
