Skip to main content

Desktop OMR tool for turning sheet music into annotations, audio, MIDI, and synchronized video.

Project description

PyClef

PyClef is a desktop Optical Music Recognition workflow for turning sheet music into annotated pages, audio, MIDI, and synchronized video.

Usage

from pyclef import Pyclef

Pyclef()

Or from the terminal:

pyclef

Model file

The YOLO model is not included in the PyPI package because it is larger than the default file limits for GitHub and PyPI.

On first processing, PyClef looks for the model in this order:

  1. PYCLEF_MODEL_PATH, if set.
  2. The user cache at ~/.pyclef/models/best.pt.
  3. Automatic download from PYCLEF_MODEL_URL.

By default, PYCLEF_MODEL_URL points to the PyClef GitHub Release asset:

https://github.com/viniciusfs14/PyClef/releases/download/model-v1.0.0/best.pt.zip

Create that release and attach best.pt.zip to make the download automatic for users.

On Windows, you can create the release asset with:

Compress-Archive -Path .\pyclef_app\model\best.pt -DestinationPath .\best.pt.zip -Force

For manual setup, place best.pt here:

~/.pyclef/models/best.pt

Or set PYCLEF_MODEL_PATH to the full path of the model file before starting PyClef.

PDF, MP3, MIDI, and video support

PyClef is prepared for pip install usage:

  • PDF pages are rendered with pypdfium2, which is installed with PyClef.
  • MP3/video generation uses FFmpeg through imageio-ffmpeg, which is installed with PyClef.
  • MIDI generation is pure Python through mido.

If you prefer using a system Poppler installation for PDF rendering, set PYCLEF_POPPLER_PATH before starting PyClef. This is optional and only used as a fallback.

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

pyclef-1.0.3.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

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

pyclef-1.0.3-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file pyclef-1.0.3.tar.gz.

File metadata

  • Download URL: pyclef-1.0.3.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pyclef-1.0.3.tar.gz
Algorithm Hash digest
SHA256 0c60194c533fcae579526b5e06ffc4edc30aa6fe09f432cc3cf337a6021aa756
MD5 1230cd2d9cd51b234d346c8d8f7a274a
BLAKE2b-256 dbce463e612533b3bb5b55f670150f3fe309a925493d5dc2f27031a1cf2d321a

See more details on using hashes here.

File details

Details for the file pyclef-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyclef-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pyclef-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 602fee0827eefef371d720dfc182bcd391aa775b4b1c3f1636541a778653dd04
MD5 8d153d285a03d632c57327c0308356f3
BLAKE2b-256 28da5edd2f2e2b320c6b1809b971db6a76be7b2d11b69cb9f6eecf1596f24702

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