News for hackers. Stuff that matters.
Re:Optimizing latency of an Arduino MIDI controller by tzs on Tuesday August 29, 2017 @11:45AM (#15125059)
> My first idea was to use a high-speed camera, using the video image to determine when pad is hit and the audio to detect when sound comes from the computer. However even at 120 FPS, which some modern cameras/smartphones can do, there is 8.33 ms per frame. So to find when pad was hit with higher accuracy (1ms) would require using multiple frames and interpolating the motion between them.

I wonder how accurate you could get if you hit the pad with the phone and used the phone's accelerometer to figure out when the impact occurred?

Re:Optimizing latency of an Arduino MIDI controller by jononor on Tuesday August 29, 2017 @06:51PM (#15128264)
Samples rates of accelerometers are usually around 100Hz, so 10ms between each sample. Some phones might be as high as 250Hz which might start to be usable. One challenge when using different sensors is to establish a joint timeline precisely. Might need to synchronize them with an event observed in both at the same time, like the 'clapper' used in filmmaking.