MIDI constants for Python
midi_const
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'
TODO
- Separate by Specification/CA/RP to allow partial imports
- Generate a fully static version
Metadata
Release files for midi_const 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| midi_const-0.1.2.tar.gz | 25.4 kB | Without provenance | Details for midi_const-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| midi_const-0.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for midi_const-0.1.2-py2.py3-none-any.whl |
Total release size: 46.5 kB
Release files / midi_const-0.1.2.tar.gz
| Download URL | midi_const-0.1.2.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5fde695b86752accf8cda40667a84547dfcac87d37c61c9d2692365f7569ec3
|
|
BLAKE2b-256 checksum How to use checksums |
64e6818cc87aa21fe0a2255fa4adee3f6a4d8e42feaac5087d262cf44cb33b3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / midi_const-0.1.2-py2.py3-none-any.whl
| Download URL | midi_const-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
faa53ada2be3cd5427cf940d66b76e648e2b3905508bb56241e2f591ded93028
|
|
BLAKE2b-256 checksum How to use checksums |
0b7f7e77fec8f9b2f0bdf9484aa51cf8bb00faca276a5e8045d1c3ca4cfedae3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Security for midi_const 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.