MadHand is an innovative MIDI controller that uses computer vision to translate hand movements into musical notes. By leveraging webcam input and hand tracking technology, it allows users to create music through intuitive gestures. MadHand uses MediaPipe for hand tracking and converts the position of your hand into MIDI notes. The vertical position of your index finger determines the note, while the thumb controls velocity. Making a fist holds the current note.
Download the latest release for your operating system from our Releases page.
- Install loopMIDI and create a virtual MIDI port.
- In the MadHand application, select the created virtual MIDI port.
- Use a synthesizer like Vital to generate sounds based on the MIDI signals from MadHand.
- Launch the application
- Select your MIDI output (virtual MIDI port) device and webcam
- Adjust settings as desired
- Click "RUN" to start
- Use your hand to control MIDI output
- Click "STOP" when finished, or changed some value
- Real-time hand tracking to MIDI conversion
- Adjustable note range and smoothing
- Multi-channel MIDI output
- Graphical user interface for easy configuration
- Command-line script version for advanced users
The following dependencies are required for the script-only version:
- OpenCV
- MediaPipe
- Mido
- NumPy
- PyQt5
If you prefer to run the script version or want to set up a development environment:
- Ensure you have Python 3.7 or later installed.
- Install the required dependencies:
- Clone the repository:
git clone https://github.com/itsmadson/MadHand.git cd MadHand
- Install the required dependencies:
pip install opencv-python mediapipe mido numpy pyqt5
- Run the script:
python madhand.py