Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ernestum/pymidi2key
A simple tool to convert midi events to key presses
https://github.com/ernestum/pymidi2key
Last synced: 11 days ago
JSON representation
A simple tool to convert midi events to key presses
- Host: GitHub
- URL: https://github.com/ernestum/pymidi2key
- Owner: ernestum
- License: gpl-3.0
- Created: 2022-07-28T23:21:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-28T23:50:55.000Z (over 2 years ago)
- Last Synced: 2024-10-07T10:22:24.022Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyMidi2Key
A simple tool to convert midi events to key presses.
It is inspired by [midi2input](https://gitlab.com/enetheru/midi2input/) but I hope to provide mostly the same functionality with a lot less LOC so it is ralistically long-term maintainable.## Installation Notes
To make the midi module of pygame work I had to do:
```bash
sudo mkdir /usr/lib/alsa-lib/
sudo ln /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_conf_pulse.so /usr/lib/alsa-lib/libasound_module_conf_pulse.so
```Read more about it here: https://stackoverflow.com/questions/64638256/pygame-midi-libasound-module-conf-pulse-so-error-unable-to-open-slave
## Configuration
Just add your code to `handle_event()`.
For you convenience, each midi event is printed as a bool expression to match it, ready to copy-paste into `handle_event`.