2

ギターでマイクを使って演奏する音を認識するプログラムを作成したいのですが、演奏する音をプログラムに認識させてから、プログラムにたくさんの音から選択させる方法がわかりません。これについて何かお手伝いできますか?基本的に、マイクで再生されたサウンドを認識し、それをさまざまなオーディオ ファイルと比較して、再生された音に最も近いものを確認できるライブラリが必要です。説明するのが難しいので、これで理解していただければ幸いです。

4

1 に答える 1

1

As Dan Bryant mentioned, you basically want to do an FFT, which gives you the amount of energy at different frequencies. Find the frequency with maximum energy, then choose the note whose frequency is closest to that. This is what is going in the little digital tuners you buy that help you tune your guitar. There are several available libraries that will do the FFT for you. You just need to specify an FFT size that gives you enough frequency resolution to distinguish between notes.

于 2012-10-19T22:56:41.897 に答える