0
0

Sorry for my english
– I try to use FMOD for decode melody to musical score
– I use exemple_vb pitch detection code for reference
– It would be fine if I use real time pitch detection. (loop record and playsound with sleep(200))
– but I record guitar melody with sample rate 44100 for 10 seconds
– then I playsound and get_spectum with sample rate 44100 by FMOD_DSP_FFT_WINDOW_TRIANGLE
– with the same(old) recorded melody the musical notes are different all the time !!
– the timer interval I used = 441
– I found that the number of notes is depend on timer interval too.

For example :

system create sound

set timer.interval = 441

first time : A#3A#3C-4A#3D#4D-4A#3C-4F-3A#3F-4D#4
second time : A#3A#3C-4A#3D#4D-4A#3C-4B-3A#3F-4D#4
third time : A#4A#3C-4A#3D#4E-4D-4A#3C-4A#3F-4D#4

set timer.interval = 600

fourth time : A#3C-4A#3D#4D-4A#3F-3A#3F-4D#4 (It 2 notes shorter)

 >>> What I did wrong ? How can I solve this problem ?
  • You must to post comments
0
0

first time ——–: A#3 A#3 C-4 A#3 D#4 D-4 A#3 C-4 F-3 A#3 F-4 D#4
second time—–: A#3 A#3 C-4 A#3 D#4 D-4 A#3 C-4 B-3 A#3 F-4 D#4
third time——–: A#4 A#3 C-4 A#3 D#4 E-4 D-4 A#3 C-4 A#3 F-4 D#4
change interval-: A#3 C-4 A#3 D#4 D-4 A#3 F-3 A#3 F-4 D#4

for easy compare :-)

Thank for help.

  • You must to post comments
0
0

if you’re using a vb timer, the resolution and timing are not guaranteed and will often vary

  • You must to post comments
0
0

Thank Janus.
Now I found that if I use output rate 48000 for both rocord and playsound . The note detection is more accurate and stable .

I wonder why? how different between 48000 and 44100

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.