Skip to main content

A collection of utilities for working with MIDI files built on top of mido.

Project description

midiutils

Code to preprocess the midi file. Normally, midi files are represented in the number of ticks that occur after the previous note. This code converts the midi file into a list of notes with the start time and end time of each note.

Installation

pip install midiutils

from source, clone the repository and run the following command

pip install -e .       # for normal installation
pip install -e .[dev]  # for development installation

Usage

from midiutils import MidiPreprocessor
processor = MidiPreprocessor()
events = processor.get_midi_events('data/cut_liszt.mid', max_note_length=50)

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

midiutils_python-0.0.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

midiutils_python-0.0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file midiutils_python-0.0.1.tar.gz.

File metadata

  • Download URL: midiutils_python-0.0.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.15

File hashes

Hashes for midiutils_python-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e25ae9a6c5f8dc53476cfa9da1456f7842dc1a08d20b3a02581f65457c32fd2a
MD5 d686ec7d177b662a699ce8cb07b80452
BLAKE2b-256 49e8859b5cf5af2dfb063a02c3c7b5498b6bc2edc0791e864502369bf46f5f2d

See more details on using hashes here.

File details

Details for the file midiutils_python-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for midiutils_python-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f2b3ce1a1c71db66b97d0af3df637387b1db67329dd034dc821687f0039efa5
MD5 b2267572396de8c0290e82e2ef677c31
BLAKE2b-256 cb5de54668e3cbede7d7df2663d4ca73766ebe659061a3305fe4f6086c0015e9

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