Python MIDI constants.
Project description
midi_const
Python MIDI constants
This very simple package provides useful constants derived from official MIDI specifications available at:
- MIDI Association, ex MIDI Manufacturers Association (MMA) [US]: https://midi.org
- Association of Musical Electronics Industry (AMEI) [JP]: https://www.amei.or.jp/
- MIDI Standard Committee (MSC) [JP]: http://amei.or.jp/midistandardcommittee
Status
Already covers most of the MIDI 1.0 Detailed Specification v4.2.1 from February 1996.
Other specifications will be added along the way.
Contributions welcome!
License
To allow maximal re-usability, these constants are offered, at your option, under any of the following licenses:
- CC0-1.0
- MIT (OSI and FSF compatible)
- Unlicense
Installation
pip install midi_const
Usage
Interactively:
>>> import midi_const as midi
>>> midi.STATUS_BYTES.get(0x80)
'Note Off'
>>> midi.CONTROLLER_NUMBERS.get(7)
'Channel Volume'
>>> midi.SMF_DEFAULT_TEMPO
500000.0
>>> help(midi)
Within a program:
from midi_const import GENERAL_MIDI_SOUND_SET, GENERAL_MIDI_SOUND_SET_GROUPINGS
index = GENERAL_MIDI_SOUND_SET.index('Banjo')
# index = 105
group = GENERAL_MIDI_SOUND_SET_GROUPINGS.get(index)
# group = 'Ethnic'
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 Distribution
midi_const-0.1.0.post1.tar.gz
(21.9 kB
view details)
Built Distribution
File details
Details for the file midi_const-0.1.0.post1.tar.gz
.
File metadata
- Download URL: midi_const-0.1.0.post1.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ff18ffe91a92298a43b4a8410150a401ed278e5c7f92ee56d83c1886a8bd71c |
|
MD5 | 2cd6d3aff30994de7d36bffd6ee267a8 |
|
BLAKE2b-256 | 90c8082df604b7dedc64b79e08686d57c3978e533617549c23a5e1ea6dce2cf9 |
File details
Details for the file midi_const-0.1.0.post1-py2.py3-none-any.whl
.
File metadata
- Download URL: midi_const-0.1.0.post1-py2.py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab7e58dc6ac3ff895f9f60f44e46c5afccc871c483b958d49d04f611d126e830 |
|
MD5 | 74886b32f1aa5d0da28695d85a09544f |
|
BLAKE2b-256 | 7afba864f73c5c6f49c45366cfba733a4f70fb6f5c88f9dd7fabb7b11d2e0d9a |