arkrow / PyMusicLooper

A python program for repeating music endlessly and creating seamless music loops, with play/export/tagging support.
https://pypi.org/project/pymusiclooper/
MIT License
261 stars 25 forks source link

Shorter loops #18

Closed freekatet closed 1 year ago

freekatet commented 1 year ago

I tried to fiddle around with --max-loop-duration to try to find shorter loops but it doesn't seem to find any loops no matter what the file is. Is there a way to change this behavior ?

Thank you!

arkrow commented 1 year ago

If using --max-loop-duration, it'll probably be best to also specify the minimum, as it is by default 35% of the track's length. If the maximum specified was less than the default minimum, no loops will be found. If the lopps discovered are still lacking, you can get more comprehensive results by enabling the --brute-force flag, however, keep in mind that it takes longer and may appear frozen while running.

Example usage (note: duration is specified in seconds): pymusiclooper -i export-points --path "track.mp3" --min-loop-duration 10 --max-loop-duration 15 --brute-force