axeldelafosse / stemgen

🎛 Stemgen is a Stem file generator. Convert any track into a Stem and have fun with Traktor.
https://stemgen.dev
MIT License
212 stars 39 forks source link

Refactor ableton.py to be cleaner and extract methods into separate files #26

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR refactors the ableton.py file to improve code organization and readability. Several functions have been extracted into a separate utility file, ableton_utils.py, to make the code cleaner and more maintainable. The global variables in ableton.py have been encapsulated into a class for better organization. The main() function has also been simplified by extracting some of its logic into separate functions.

Summary of Changes

Fixes #25.

To checkout this PR branch, run the following command in your terminal:

git checkout sweep/refactor-ableton-py