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:
# from the root directory with clean working tree
# replace patch with one of: [major, minor, patch]
./scripts/release/start_release.sh patch
# Make any additional changes to the release commit
./scripts/release/finish_release.sh
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.4.0.tar.gz
(25.2 kB
view hashes)
Built Distribution
fortepyan-0.4.0-py3-none-any.whl
(32.0 kB
view hashes)
Close
Hashes for fortepyan-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6da365683a9fa1f01f6c7d873ca4611f5a375ee383fb87c8b9de1f4f8717703 |
|
MD5 | ca2c3600c896e8dfaf7c233cc4994b9a |
|
BLAKE2b-256 | 1c24cc1aa277ff11208430a7d3eecbc31142dc4ca78741e3f28d7a6c5fa8c63c |