Live data from Hacker News

Guitar tuner that uses phone accelerometer

tautme.github.io

81–90 of 105 posts

Re: Guitar tuner that uses phone accelerometer

#81

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.

i'm like this at home for sure, until i want to play along to something in tune.

i'm also the one at rehearsal literally throwing TU-3s at my bandmates who don't have tuners on their boards for some reason. you have to have a tuner if you play with others. no question.

Re: Guitar tuner that uses phone accelerometer

#82
post #80
post #76

Earlier quoted context omitted.

Yeah I was going for no battery Idk though when I read it, it seems like it's literally an antenna attached to a can "resonator" is that electronics? It is I guess since it can carry an RF wave? Electronics I think of a chip or circuitry. I get it has to be some form of a circuit to work even as a monopole. The article says it though: "...hung in his office behind his desk, and which contained an electronic device"

I think if you saw it on a bench hooked up to wires, it would be intuitive that it was a circuit. It's equivalent, but instead of being coupled via wires it's coupled via RF. I think it feels like there's no return path and that the circuit is open, but it's a real circuit with complicated/uncommon coupling to the power source. A resonator is both a component in the circuit (the case is a cavity resonator) and the ty…

Thanks for the explanation and will look into NLJD, really need pictures, that bee is cool

Re: Guitar tuner that uses phone accelerometer

#83
post #42
post #24

This has some very interesting privacy and security risks. If the tech can do more complex frequency analysis, then couldn't it essentially be used as a microphone for a device that doesn't need permission.

It's a pretty well-known exploit that the CIA is capable of turning a lot of electronics with speakers into microphones. I imagine there is an entire classified backlog of things they can turn into microphones without the target's knowledge.

it's not (just) the CIA, it's (just) physics

Re: Guitar tuner that uses phone accelerometer

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

"the lowest string pitch (E2, about 82 Hz)." My 6-string Kiesel Kyber bass would like a word with you while it sounds 41Hz.

I guess the low B should be about 31Hz

Re: Guitar tuner that uses phone accelerometer

#86

Earlier quoted context omitted.

I guess thats sort of like a weird PLL thing? But I'd imagine you'd have to have prior knowledge of which string you're tuning otherwise the analysis is going to alias against every harmonic.

Every non-linear mixing of signals gives you sum and difference frequencies. It's less a weird PLL thing and more a weird trig function thing.

Its not even a non linear thing. Its a sampling thing. Even ideal sampling exhibits aliasing.

https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampli...

Re: Guitar tuner that uses phone accelerometer

#87
post #63
post #61

Earlier quoted context omitted.

This is fascinating. Thanks for sharing.

The beat frequencies are pretty noticable, just tune until they go away

Not really. 12 TET (the tuning intervals used in almost all situations where you want equal ability to play in any key, from a Western music perspective) requires a slight amount of beating, even in those "perfect fourth" intervals between most adjacent guitar strings, and especially in the "major third" interval between one pair of adjacent guitar strings, but not in the "2 octave" interval between the lowest and highest guitar strings.

Some equal temperament intervals are narrower than their just-intonation (nonbeating) counterparts, for example an ET perfect fifth (2.996614:2) and just perfect fifth (3:2). But others are wider, for example an ET perfect fourth (4.00452:3) and just perfect fourth (4:3), and an ET major third (5.039684:4) and just major third (5:4).

If you tune each string sequentially (low E to high E, or vice versa) and eliminate all of the beating each step of the way, the effect adds up to the point where it's quite noticeable, meaning that your low E and high E will sound like garbage when played together because that ratio should be precisely 4:1 but now you've accidentally made it narrower than that. How much narrower?

For a guitar going from low E string to high E string, we need to stack 3 perfect fourths, a major third, and another perfect fourth -- and end up at 4x the starting frequency. If we use those non-integer ratios of the 12 TET system (intentional beating), we end up with 4.00452/3 * 4.00452/3 * 4.00452/3 * 5.039684/4 * 4.00452/3 = 4.00000. That's what we want. But if we use the integer ratios of just-intonation (no beating), we end up with 4/3 * 4/3 * 4/3 * 5/4 * 4/3 = 3.95062 and that's going to sound like complete ass. This is why just-intonation is not used for instruments like piano and guitar that are designed to play in all keys. It's used by choirs and barbarshop quartets without piano accompaniment, since they can adapt on the fly, and it's glorious.

An electronic tuner is the most practical way to avoid this problem. Alternatively, you could just get the perfect fourths nonbeating, get the double-octave nonbeating, and let the major third beat however it wants -- this works because rounding the ~4.005:3 perfect fourth to 4/3 is somewhat acceptable but rounding the ~5.04/4 major third to 5/3 is not.

Re: Guitar tuner that uses phone accelerometer

#88
post #63

Earlier quoted context omitted.

The beat frequencies are pretty noticable, just tune until they go away

Not really. 12 TET (the tuning intervals used in almost all situations where you want equal ability to play in any key, from a Western music perspective) requires a slight amount of beating, even in those "perfect fourth" intervals between most adjacent guitar strings, and especially in the "major third" interval between one pair of adjacent guitar strings, but not in the "2 octave" interval between the lowest and hi…

Perfect fourth could be achieved via natural harmonics at 5th and 7th frets, double octave is just the 5th fret and voila you can get the standard tuning. Inapplicable for necks without a precise position of frets, good luck compensating height differences from nut and gauges with intonation tuners.

Re: Guitar tuner that uses phone accelerometer

#90

Earlier quoted context omitted.

Wouldn't you need to rewire the headphones? Headphones use a 3-pin TRS whereas a 4-pin TRRS plug is used when you add a microphone. Regardless if the 4-pin is CTIA or OMTP, it's generally only going to get shorted to ground if a 3-pin TRS plug is plugged into a 4-pin TRRS socket, or if a 4-pin TRRS plug is plugged into a 3-pin TRS socket. Diagram: https://i.sstatic.net/8rSD2.jpg

"Wouldn't you need to rewire the headphones?" This is basic physics controlling the effect here, not electrical routing. Speakers are microphones by their very design. To make them work as a microphone, you merely speak into them with them plugged into an input jack that provides at minimum a line level electrical signal to be modified by wiggling the speaker cone/diaphragm back and forth.

[deleted]
Post reply on HN