Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.12 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.12 KB

osu-strain

Originally forked from oppai-chunks to use pyoppai for a massive speed boost. Now I've rewritten it to use pyttanko with strains instead of difficulty.

Runs on Python 3 and uses pyttanko

Usage:

From the command line

./osustrain.py beatmap [mod bitwise]

beatmap is the .osu file you want to analyze.

mod bitwise is the bitwise for the mod combination(s) you want to apply.

For example, ./osustrain.py "haitai.osu" 24 will provide the strains for the map with HDHR.

Output are each chunks strain values for speed and aim with the sum of the two.

As a python module

from osustrain import get_strains
...
get_strains(beatmap, mods=24)

You can also graph the strains instead.

from osustrain import get_strains
...
graph(beatmap, mods=24)

The arguments are the same as above. Here, the beatmap should be given as a path (osustrain('/path/to/beatmap.osu')). The outputs are four lists for the seperate strains for speed, aim, the sum of the two, and the time in milliseconds of which the chunk starts.