Tasks for publishing my music.
The code is idiosyncratic with my music project conventions and therefore applicable mainly to me. However, the code may be a useful example for using Reaper's Python API.
- A Python install with framework. For example, with
pyenv:
PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install <VERSION>
- SWS Extension
-
pip install .
- Open Reaper
- Configure Reaper for Python (per
reapy's README)
python -c "import reapy; reapy.configure_reaper()"
- Restart Reaper
music --help
For example:
music render
Which renders the current project in Reaper, with terminal output like the following.
Install for local development:
pip install --editable '.[testing]'
pre-commit install
pytest
Besides tests, checks are run on commit, after installing the pre-commit hook above, and on push. You can also run them manually.
pre-commit run --all-files
When using breakpoint()
, you'll probably want to disable
rich output, via the TERM=dumb
environment variable. That will make the Python interactive debugger easier to
see.