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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file midiutils_python-0.0.4-py3-none-any.whl.
File metadata
- Download URL: midiutils_python-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da0375663d058b6225ab6f40f1eab63c8d8c01df6c742730385b5e73010c1800
|
|
| MD5 |
51652420cadd730b2f9f17238ca14b23
|
|
| BLAKE2b-256 |
c7d3e46d09a579d28247e78b4897e7ac9d4f4d62f18ebb2bc60aeb887be263fc
|