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-python

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.3.tar.gz (11.2 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.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: midiutils_python-0.0.3.tar.gz
  • Upload date:
  • Size: 11.2 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.3.tar.gz
Algorithm Hash digest
SHA256 7701a99e6dab7502bd786c98900bf70e2be4819ec6883f893d10e9ee66764457
MD5 e19d83ff269f0a34c58c5be534c6615c
BLAKE2b-256 96ba13a8a944ac7fa86bba91e962766be5bedc4822f7e5112fe27ccfbf02356c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for midiutils_python-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fcfddb0c7f96b2650eeb449cde617807aaac049aa639103035fb8995519c18ad
MD5 62b708ff176edcd4685a0358c4429a32
BLAKE2b-256 98eb6fb9fc118d06703e96b496365d1b28f24433478d28a289de7a53cfe828fb

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