RAISE YOUR HANDS AND MAKE SOME MUSIC!
Dough Instrument
Play music with your hands. Stand in front of your camera — your left hand plays the bass, your right hand plays the lead, over a techno beat.
- Left / right
- choose the note
- Up / down
- volume
- Fingers up
- chord size (1 – 5 notes)
- Pinch
- dark ↔ bright tone
- Spread
- chorus width
- Fist
- mute that hand
- Point
- precise fingertip pointer
Sound
Tracking
Camera
I HAVE NO CLUE
ABOUT CODING
- The idea: kneading dough already has a rhythm, so you built a way to hear it.
- Step 1, the camera sees hands: MediaPipe finds 21 points on each hand. The code uses them to tell where the hand is, which fingers are up, how pinched or spread it is, how fast it moves and what shape it makes. It also smooths the movement so the sound doesn't jitter.
- Step 2, movement becomes music: your left hand plays a bass synth and your right hand a bell-like lead. Moving sideways picks the note, from a pentatonic scale so every note sounds good together. Moving up and down sets the volume, raised fingers build chords and a fist mutes that hand. A drum machine made in code plays the techno beat.
- Step 3, kitchen to browser: the first version was a Python program on your Mac using OpenCV, MediaPipe and NumPy. The web version runs everything in the visitor's browser and uses the browser's own audio engine to make the sound.
- What I learned: a short closing comparing making dough and making music.

