Process MIDI piano with (almost) no pain
Project description
fortepyan :musical_keyboard:
Usage
import fortepyan as ff
piece = ff.MidiPiece.from_file("mymidi.mid")
ff.view.draw_pianoroll_with_velocities(piece)
ff.view.make_piano_roll_video(piece, "tmp.mp4")
Development
Pre-commit hooks with forced python formatting (black, flake8, and isort):
pip install pre-commit
pre-commit install
Whenever you execute git commit
the files altered / added within the commit will be checked and corrected. black
and isort
can modify files locally - if that happens you have to git add
them again.
You might also be prompted to introduce some fixes manually.
To run the hooks against all files without running git commit
:
pre-commit run --all-files
Package release:
# use patch/minor/major
bumpver update --patch
python -m build
twine upload -r pypi dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fortepyan-0.2.2.tar.gz
(17.5 kB
view hashes)
Built Distribution
fortepyan-0.2.2-py3-none-any.whl
(24.1 kB
view hashes)
Close
Hashes for fortepyan-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2628930aead170a123aa403c783261f1d420b3e561da2b8e7451097296e3892 |
|
MD5 | c220f7d3ca629109e124bc766c617b54 |
|
BLAKE2b-256 | f07eeed7ad00bc38879a2810f8df50f4666812b46e66ec174d5271e5e7764eda |