Live data from Hacker News

Guitar tuner that uses phone accelerometer

tautme.github.io

11–20 of 105 posts

Re: Guitar tuner that uses phone accelerometer

#11
post #4

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).

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.

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.

Re: Guitar tuner that uses phone accelerometer

#13

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.

> even the cheapest crappiest mic would do a much better job at recording sounds

And if you don't even have that, use a speaker/headphone as the microphone, probably also better results.

Re: Guitar tuner that uses phone accelerometer

#15
post #4

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).

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.

aka a stroboscopic measurement,

but I don't think it will work well for this case.

Re: Guitar tuner that uses phone accelerometer

#16

Earlier quoted context omitted.

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.

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.

If the accelerometer samples at 50Hz, how could there be an antialiasing filter?

What would that filter look like?

Re: Guitar tuner that uses phone accelerometer

#17

Earlier quoted context omitted.

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.

aka a stroboscopic measurement, but I don't think it will work well for this case.

It's just higher nyquist zones.

Re: Guitar tuner that uses phone accelerometer

#19

Earlier quoted context omitted.

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.

If the accelerometer samples at 50Hz, how could there be an antialiasing filter? What would that filter look like?

Anything physical which dampens higher frequency oscillations would act as an antialiasing filter.

Re: Guitar tuner that uses phone accelerometer

#20

This sounds neat, but I think I owned a tuner for about 6 weeks before I could do it by ear... EADGBe isn't that hard.

If you have a good external reference point. But it's also pretty easy to have your tuning drift quite a bit away from E standard if you solely rely on the strings. Getting a standard tuning is not the same as getting the standard tuning you want, exactly. This is especially true if you play in standard tunings below E, like C or B, where strings can be looser than the norm.
Post reply on HN