Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

100% Positive

Analyzed from 175 words in the discussion.

Trending Topics

#frequency#accelerometer#didn#access#data#sample#low#guitar#got#handle

Discussion (9 Comments)Read Original on HackerNews

jmusall•about 2 hours ago
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).
hgomersall•about 1 hour ago
If you know you have a single frequency close to an actual frequency of interest, you can use the fact you know you're in an aliased band to get a precise frequency estimate.
jonathrg•26 minutes ago
Presumably there is an antialiasing low pass filter somewhere before JS gets to the data. I have a similar sample rate and it certainly didn't work at all for me.
adm4•3 days ago
guitar detuner that uses accelerometer instead of microphone, it doesn't really work, but amazing to see how sensitive they are.
tgv•about 2 hours ago
It also shows that it can leak all kinds of other information.
codethief•about 1 hour ago
…which is why both Android & iOS put high-frequency access to the accelerometer behind an additional permission AFAIR.
aa-jv•about 2 hours ago
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•about 2 hours ago
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.
aa-jv•about 1 hour ago
Ah, that does look like something I can work with - thanks for the legwork, I will check it out and see if its worthwhile converting to C/C++ for my device ..