Skip to main content

Process MIDI piano with (almost) no pain

Project description

Fortepyan :musical_keyboard:

GitHub CI Python 3.9 PyPI version PyPI download month

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

Tests

Recommended way to run and monitor tests is using pytest-watch:

ptw

Project details


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.3.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fortepyan-0.4.3-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

Details for the file fortepyan-0.4.3.tar.gz.

File metadata

  • Download URL: fortepyan-0.4.3.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for fortepyan-0.4.3.tar.gz
Algorithm Hash digest
SHA256 fc88223df4ac670888b534e043ca1707162c9f10bda83eae5e8f71295b3d8371
MD5 7f2cc53c6e9e8221b9dde6f676f3e784
BLAKE2b-256 9865eba06b8b6af913d4a0405848a0d7207b265819afdd2d06e7b97b6bde778e

See more details on using hashes here.

File details

Details for the file fortepyan-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: fortepyan-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for fortepyan-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f9c575a84260fbe83e07eafd4fd9e44a7c832208d6f847e0e754ec1b15a16f3
MD5 ee806bc6900300c11dcea68182213fd5
BLAKE2b-256 cc35ca9dde5907d29d360fb9b2e2d08d90777730b533d414ac42012499530c25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page