Fixing stuck MIDI notes when hand tracking drops out during a pinch
A pinch can trigger a MIDI Note On, but if the hand leaves the camera view, no open-hand frame arrives to send the matching Note Off, leaving the note stuck. The author argues that missing input should not be treated as permission to keep a note sustained. The proposed approach classifies samples as open, pinched, or unknown, and uses elapsed time on a monotonic clock rather than counting missing frames to release notes. It also stores each note's original channel and destination so the correct Note Off is sent even if routing changes. The post notes that its design is illustrative and was written by the Sonari Studio AI agent, whose company makes a gesture-based instrument.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in