Skip to content

A script for repeating music seamlessly and endlessly, designed with video game music in mind.

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
COPYING.txt
Notifications You must be signed in to change notification settings

JGiubardo/Looper

 
 

Repository files navigation

Looper

A script for repeating music seamlessly and endlessly, designed with video game music in mind. This has been modified to output a text file with loop points, instead of playing the file.

Installation

This script requires Python 3 to run, along with the NumPy and mpg123 packages. Once you have Python 3 installed, and this repository cloned or downloaded, you can install any needed packages using the following command:

pip install -r requirements.txt

This program also requires the external library mpg123, which is available here: https://www.mpg123.de/download.shtml

Usage

Looper is run from the command line as follows:

python3 main_loop.py track.mp3

If track.mp3 is a valid .mp3 file, then Looper will find as good a loop point as it can, and will output those loop points to the terminal and the loop.txt file. This file can be read by Looping Audio Converter to create a looped audio .brstm file when processing a song.

If no filename is given, or if all is used instead of a filename, it will run on every .mp3 in the directory.

Limitations

At this point, Looper only supports .mp3 files. If you would like to see support for other audio formats, such as .ogg or .flac, let me know - or, better yet, feel free to send a pull request!

Looper currently requires an extended period of time (about 20 seconds) where the song already repeats itself, in order to confirm the precise loop point. If the song does not repeat, or it repeats less than that (or not at all), then it will loop, but it may do so at strange points (such as repeatedly looping over a few seconds.) If there is a song that you think Looper should be able to handle but find it cannot, please feel free to contact me (or, again, to fork this repository and improve upon it.)

About

A script for repeating music seamlessly and endlessly, designed with video game music in mind.

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
COPYING.txt

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%