Skip to content

Software to compile an mp3 file by splicing different mp3 files together at certain durations to allow the creation of a music track used for interval training.

Notifications You must be signed in to change notification settings

djcolon/pyInterval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyInterval

Daniel Colon - 16/09/2023

Summary

Software to compile an mp3 file by splicing different mp3 files together at certain durations to allow the creation of a music track used for interval training.

There are no unit tests as I knocked this out on a Saturday morning as a little private utility. I thought I'd share it should anyone find it useful.

Installation

pyinterval was built and tested using wsl.

pyInterval uses poetry, which will need to be installed first.

After poetry is installed, install pyInterval's dependencies:

poetry install

The program uses pydub which relies on ffmpeg, install it using your distribution's package manager:

# Debian/Ubuntu
sudo apt-get install ffmpeg

Debugging

Using visual studio code (launched from wsl if running in wsl!) you can use a standard debug gonfig (just press F5), but make sure the correct interpreter is selected. After installing with poetry, run poetry env info and copy the Virtualenv Executable path, and set it as your interpreter by clicking in the bottom right of vscode when working in cli.py (see also...).

Attribution

The program relies heavily on pydub.

All mp3 files used in the samples come from incompetech.

Excepting three_beeps which is by Joseph Sardin

Example c25k timings taken from Tom Benninger

Usage

poetry run pyInterval

Which will generate an mp3 files from the example. If the combined source files are too short to cover the defined intervals they will be looped.

About

Software to compile an mp3 file by splicing different mp3 files together at certain durations to allow the creation of a music track used for interval training.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages