Skip to main content

Convert MIDI files to point set representation.

Project description

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])

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

midi-point-set-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

midi_point_set-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file midi-point-set-0.1.0.tar.gz.

File metadata

  • Download URL: midi-point-set-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.4 Linux/6.2.6-76060206-generic

File hashes

Hashes for midi-point-set-0.1.0.tar.gz
Algorithm Hash digest
SHA256 04631f8d64d76fbc99d270fec17b32b660a971bb18276ca5db71b360c99756ff
MD5 b94248f29a0594dd6880578702f3b70f
BLAKE2b-256 5d9c75ba3958e1e59c034c4ce64943068c944ddd460ae445752dcba0d9094d64

See more details on using hashes here.

File details

Details for the file midi_point_set-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: midi_point_set-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.4 Linux/6.2.6-76060206-generic

File hashes

Hashes for midi_point_set-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c5a304315b8999c0b71ea17c7c58a0f2e71f86b67a847b54cb158223a393612
MD5 09cf2aa12aa9b8fedcbb9bd2577748f3
BLAKE2b-256 08c67ce1de76b6c0d07123ff82d4e3fd7fd449d8dbdaad850fd04a1a83902907

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