Mic Detection Help
Hey guys, I've been working on an app and one of It's features is to detect piano chords and notes through the mic. I tried a couple of things, but they all resulted in some drawback that could affect performance. The two things I am aiming for is speed and accuracy. Here's what I tried and why It's didn't feel satisfied with it.
I won't mention the app to respect the No Marketing rule, but will provide context if I felt it was necessary.
- Spotify's Basic Pitch Open Source detector: While the accuracy was very high, it took around half a second to detect notes.
Here's some context for the next thing I tried. My app is basically a sheet music practice app, in which notes are displayed from an uploaded score or the score repository. Target notes must be played to move on to the next notes.
- Probabilities + FFT and YIN:
Basically, I set the chances for the right notes to be played to a high degree, and matched it with FFT inputs if multiple notes were played, and YIN if a single note was played (For accuracy). However, while the speed was heavily increased, the accuracy diminished, however, it was still pretty accurate. Most commonly, if an expected note is played, the detector sometimes recognizes the correct note being played, as well as the note an octave under it.
I want some advice about what I could try next to build this detector. I'm aiming for a lag of under 200ms.
I am okay with starting from scratch, or trying a new method.