r/Theremin • • 22d ago

Virtual realistic theremin simulator

Hi, I am developing a theremin simulator for iOS devices which tracks your hands via camera and you can play by waving your hand.
Hand tracking has three modes:
- One hand, height: Move one hand up and down to change the pitch. It's the simplest way to start.
-Thumb and index finger: Your index fingertip plays the note, so move it left and right to change the pitch. The gap between your thumb and index finger sets the volume. Open your thumb away from your finger for louder, and bring them together for quieter or silent. B
- Two hands: Use one hand for pitch and the other for volume, like a real theremin player.

Would be great if you can test to play and share your feedback as I am not good at theremin.

Test flight link: https://testflight.apple.com/join/5B7dKZcH

[Update]Test is over now it's on the App Store https://apps.apple.com/app/apple-store/id1551476064?pt=94765902&ct=reddit&mt=8

15 Upvotes

3 comments sorted by

2

u/shubhrasaha 21d ago

I'm also building a camera-based gesture instrument for Mac, so your mapping modes caught my eye. The one-hand pitch mode seems like a nice way to make the first interaction approachable. How are you calibrating hand height across different camera positions, and how much smoothing are you applying to keep pitch steady without losing the expressive glide?

1

u/zavzav1 20d ago

Nice, would love to see the Mac one when it's up!

Honest answer on calibration: I mostly don't. I tried to avoid a calibration step entirely because it kills the "pick it up and it makes a sound" moment. Pitch maps to the hand's position in the normalized camera frame, not to real-world distance, so it doesn't matter where the camera sits as long as your hand is in view. What I tune instead is how many notes share the frame. Default is about one octave across the whole field, so each note zone is wide enough to survive tracking noise. The zone width is a fixed noise budget, not something measured from the hand in front of the camera, so the layout never shifts on you mid-play.

1

u/shubhrasaha 20d ago edited 6d ago

Thanks for explaining the normalized-frame approach, especially the fixed note-zone width. Sonari is a separate camera-based gesture instrument for Mac with built-in sounds, MIDI output to compatible DAWs, and music-driven visuals. I’m the developer; it requires Apple silicon and macOS 26+. If you try it, I’d be curious how the gesture feel compares with the theremin-style mapping you built.

Mac App Store: https://apps.apple.com/app/id6803577489