Open ucasiggcas opened 5 years ago
You should open an audio stream on your system (microphone or file for example), and provide the audio buffers to the library, as they arrive. It will compute the pitch on each buffer. You can look at the SpeakHere example (for iPhone), for the principle. Hope this helps Antoine
Thanks But in the dywapitchtrack.h
dywapitchtracker pitchtracker;
dywapitch_inittracking(&pitchtracker);
double thepitch = dywapitch_computepitch(&pitchtracker, samples, start, count);
what are the meaning of samples,start,count?
I saw the code in cpp file,
samples is audio buffer?
count is Number of samples?
and start is what?
Am I right??
If I set the three parameters as upper double samples[1500]; ... start=0 or 1? count=1500 Why the result is always 0? I don't know why Could U help me? Thx
Yes, I think it is well documented :
// computes the pitch. Pass the inited dywapitchtracker structure // samples : a pointer to the sample buffer // startsample : the index of the first sample to use in the sample buffer // samplecount : the number of samples to use to compte the pitch // return 0.0 if no pitch was found (sound too low, noise, etc..) double dywapitch_computepitch(dywapitchtracker pitchtracker, double samples, int startsample, int samplecount);
Index of the first sample is 0 in C..
Dear, Now I have a question, the result of A440 key is always 444.44Hz while the app of gStrings on Android result is about 440Hz, yoo2017A Longitudinal Study of Haptic Pitch Correction Guidance for String.pdf
What's wrong? Could U help me,Please? Thx
No idea.. The algorithm is quite strong normally from all the tests that have been done.
Regarding 444.44Hz vs 440Hz. Maybe because of the Note : The algorithm currently assumes a 44100Hz audio sampling rate. If you use a different samplerate, you can just multiply the resulting pitch by the ratio between your samplerate and 44100.
?
Dear, Any steps to start the project? I mean how to test the project, Thx