Hacker News
Guitar tuner that uses phone accelerometer
26 points by adm4
ago
|
11 comments
jmusall
|next
[-]
Fun idea and also I didn't know that websites could get access to my accelerometer data. However for me the sample frequency is 50 Hz which is way too low to measure even the lowest string pitch (E2, about 82 Hz).
ramenat2am
|next
|previous
[-]
I mean yeah, that's cool as a fun project. And I've also heard about a project that used accelerometers as microphones for surveillance. And while it's doable, even the cheapest crappiest mic would do a much better job at recording sounds for whatever is your goal.
adm4
|next
|previous
[-]
guitar detuner that uses accelerometer instead of microphone, it doesn't really work, but amazing to see how sensitive they are.
aa-jv
|next
|previous
[-]
Anyone got a handle on the algorithm required to do this? I've got a pocketable accelerometer-enabled device I'd like to try to implement this on..
simonklitj
|root
|parent
[-]
Don't have a handle on it, unfortunately. But the algorithm is in here: https://github.com/tautme/phone-sensors/blob/main/guitar-tun.... Esp. lines 221–257 and 373–417.