Skip to content

jmbiggs/mic2midi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mic2midi

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.

Getting Started

Prerequisites

PyAudio

NumPy

Mido

rtmidi

Installing

  1. Install PyAudio using the method of your choice Example:
pip install pyaudio
  1. Install NumPy using the method of your choice Example:
sudo apt-get install python-numpy
  1. Install Mido
pip install mido
  1. Install rtmidi
pip install python-rtmidi

Usage

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.

Author

jmbiggs, [email protected]

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Converts microphone input into a MIDI note

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages