devashish-sood / tuner

Guitar tuner
0 stars 0 forks source link

Noise Reduction #2

Closed devashish-sood closed 1 month ago

devashish-sood commented 2 months ago

Potentially because of access to a bad guitar, but seems like there's still a lot of noise in real world input. Consider some of these solutions to reduce noise:

Input Signal Analysis:

Print out or visualize the raw FFT results for both YouTube audio and your live guitar. Compare the harmonic structures and overall frequency content.

Preprocessing:

Implement a high-pass filter to reduce low-frequency noise. Try normalizing the input signal.

HPS Algorithm Adjustment:

Experiment with different numbers of harmonics in your HPS calculation. Try weighting higher harmonics more heavily.

Frequency Range Focus:

Implement a bandpass filter focusing on the expected frequency range of guitar strings (about 80 Hz to 1000 Hz).

Peak Detection:

Improve your peak detection algorithm to be more robust against noise. Implement a minimum threshold for peak detection.

Multiple Frame Analysis:

Analyze multiple short frames of audio and use a voting or averaging system.

devashish-sood commented 1 month ago

Fixed by using a more sophisticated detection algorithm