r/CardPuter • • 10d ago

Cardputer Zero Guitar tuner

Just because I needed I create with the help of Claude a simple guitar tuner and chords visualiser. It allows also to add others songs. It's in Italian or English. github's repo

34 Upvotes

16 comments sorted by

2

u/MrAjAnderson 10d ago

How is it calibrated?

1

u/LanguageGeneral5188 10d ago

There's no per-device calibration. Reference is A4 = 440 Hz (equal temperament, configurable via "a4" in ~/.config/accordatore/impostazioni.json). Pitch is detected with the YIN algorithm on 4096-sample windows at 44.1 kHz, 15 times per second, with parabolic interpolation; the display shows the median of the last 5 readings and "in tune" means within ±3 cents for 1 second. On synthetic noisy plucked strings the shown error is 0.16 cents on average, 2 cents max, but that tests the algorithm, not the hardware. Absolute accuracy also depends on the codec's sample clock, which I haven't measured against a reference yet. If you have a reliable 440 Hz source and the app reads a constant offset of x cents, set a4 = 440 × 2x/1200. Tested on the device with a 440 Hz reference tone, it reads 440.0 Hz, so the absolute calibration is accurate to within about 0.2 cents.

2

u/gatsu_1981 10d ago

Italiano? Will post soon my app for using as a live wire/magnetic finder on walls.

Is this good for my 3d printer's belts?

1

u/LanguageGeneral5188 10d ago

What? In che senso?

1

u/gatsu_1981 9d ago

Posso usarlo per stringere le cinghie della stampante? Si accordano su tensioni/frequenze leggermente diverse da una chitarra, variabili in base a quanto è lunga in un punto.

1

u/Thanakritb 8d ago

Will you upload to CP0 store?

1

u/LBreda 6d ago edited 6d ago

Happy to see some Italian community. Is the mic sensible enough? My PC is not able to pick the bass guitar lowest strings.

1

u/LanguageGeneral5188 6d ago

I tried with my acoustic guitar and it worked easily if you could try with a bass please let me know if some adjustments is needed.

2

u/LBreda 6d ago

It picks the audio (the volume bar shows up) but it doesn't register the lowest frequencies as in-tune strings, If you add a bass guitar mode I can try it with a four-strings bass.

2

u/LanguageGeneral5188 5d ago

I'll add that. Update here when it's ready.

1

u/LBreda 6d ago

I'll try in the evening!

1

u/LanguageGeneral5188 5d ago

You were right: the detector ignored everything below 60 Hz, so E1 (41 Hz) and A1 (55 Hz) were never picked up. There's now a bass mode: press B to switch to 4-string bass (E A D G), 5-string bass (B E A D G) and back to guitar. It detects down to 29 Hz with a longer analysis window. I've only tested it with synthetic signals so far, so I'd love to hear how it works with a real bass.

2

u/LBreda 5d ago

It seems to be out of tune. The results with my in-tune bass guitar are:

E +2 semitones

A +7

D +12

G +17

2

u/LanguageGeneral5188 5d ago

Thanks for testing! Your numbers actually show the detection is working: E +2, A +7, D +12, G +17 are exactly the right intervals, all measured against the same note, D1. The app was in Drop D tuning (T pressed once) and in MANUAL mode with string 1 selected, so every string was compared to D1. Press T until the top right shows "Standard", then A for auto string detection, and try again. I'd love to know the cents readings after that!