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.2.tar.gz
(25.2 kB
view details)
Built Distribution
fortepyan-0.4.2-py3-none-any.whl
(32.1 kB
view details)
File details
Details for the file fortepyan-0.4.2.tar.gz
.
File metadata
- Download URL: fortepyan-0.4.2.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8a304237af9023eb46e3880b0b86f72c55ba42b935cf2f2de6ee905370ddc3d |
|
MD5 | 7e39aab75c1c90c1b7fec997f785fe6d |
|
BLAKE2b-256 | 24d789cb83d63e871c9d73ce57a4dbfa3fa5de197e59d383bc45e496439826a2 |
File details
Details for the file fortepyan-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: fortepyan-0.4.2-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf838026c7e5552805e56ef0066f5b176047590d2ec40ed6ab68199a35c1327a |
|
MD5 | 3f429c5fa621a431657010887e7b7bf1 |
|
BLAKE2b-256 | 3bad1fafff6c43835d173f96d80d4e23aeab2dd9e00b62fd945633a5ced82622 |