Python script intended for Linux / Raspberry Pi use. Converts microphone input into a MIDI note. A threshold level is set - when audio input is above the threshold, the note will turn on, and when input drops below it, the note turns off.
pip install pyaudio
sudo apt-get install python-numpy
- Install Mido
pip install mido
- Install rtmidi
pip install python-rtmidi
You can edit the global definitions in the script to get the functionality you want.
INPUT_INDEX is the port number for your audio input. You can figure it out by using the input.py script.
THRESHOLD is the amount of input at which you want the MIDI note to trigger.
NOTE is the number of the MIDI note you want to trigger.
jmbiggs, [email protected]
This project is licensed under the MIT License - see the LICENSE.md file for details