Skip to main content

MIDI to Point Set Converter

This Python library converts MIDI files to point set representation, which encodes notes as pairs of integers encoding the pitch and time. The output can be used for machine learning tasks such as music generation.

Requirements

  • Python 3.7 or higher

Installation

pip install midi_point_set

Usage

CLI

# JSON output

python -m midi-point-set --input-midi K545-1.mid --output-json mozart.json

# Plot
# (requires matplotlib installed)
python -m midi-point-set --input-midi K545-1.mid --output-plot mozart.svg

Library

from midi_point_set import get_point_set

point_set = get_point_set("mozart.midi")
print(point_set[:5])

Metadata

Release files for midi-point-set 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for midi-point-set 0.1.0
File Size Uploaded Provenance Actions
midi-point-set-0.1.0.tar.gz 3.2 kB Without provenance Details for midi-point-set-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for midi-point-set 0.1.0
File Interpreter ABI Platform Actions
midi_point_set-0.1.0-py3-none-any.whl Python 3 none any Details for midi_point_set-0.1.0-py3-none-any.whl

Total release size: 7.2 kB

Release files / midi-point-set-0.1.0.tar.gz

Download URL midi-point-set-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
04631f8d64d76fbc99d270fec17b32b660a971bb18276ca5db71b360c99756ff
BLAKE2b-256 checksum
How to use checksums
5d9c75ba3958e1e59c034c4ce64943068c944ddd460ae445752dcba0d9094d64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.10.4 Linux/6.2.6-76060206-generic

Release files / midi_point_set-0.1.0-py3-none-any.whl

Download URL midi_point_set-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c5a304315b8999c0b71ea17c7c58a0f2e71f86b67a847b54cb158223a393612
BLAKE2b-256 checksum
How to use checksums
08c67ce1de76b6c0d07123ff82d4e3fd7fd449d8dbdaad850fd04a1a83902907
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.10.4 Linux/6.2.6-76060206-generic

Security for midi-point-set 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page