Closed orkenstein closed 6 years ago
@orkenstein Did you get a system popup asking for microphone permissions? Or maybe if you try to print an error in pitchEngineDidReceiveError
delegate method it will put some light on this.
Yep, it asked for the permission. No error from delegate. These same thing for the example app: it works when you tap start for the second time.
11 янв. 2017 г., в 22:09, Vadym Markov notifications@github.com написал(а):
@orkenstein Did you get a system popup asking for microphone permissions? Or maybe if you try to print an error in pitchEngineDidReceiveError delegate method it will put some light on this.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Same happens to me. Only works when calling start 2 times.
Same here. However, a usleep of 3 seconds after initialising and prior to calling start also solves the problem as well.
Sometimes calling start simply doesn’t seem to have any effect. Any news on this?
Same here. I initialzed the AudioEngine, added the config, but the delegates never get called, even though I've added pitchEngine.start()
This happens to me as well, and with one additional issue. When I call pitchEngine.start() twice (to get it to start at all), the app crashes sometimes when I call pitchEngine.stop().
Any way to fix this?
Hi @anandchandra50, I'm not sure why this happens, but I'll try to test and find out the problem when I get some time.
I fixed the problem by inverting the initialization calls in InputSignalTracker.swift. On line 71 the code now reads
try audioEngine?.start()
captureSession.startRunning()
guard captureSession.isRunning == true else {
throw InputSignalTrackerError.inputNodeMissing
}
Note that audioEngine?.prepare() is not needed as it is called by audioEngine?.start().
Hope this helps.
Anyhow, a big THANKS to vadymmarkov for this implementation!!!!
Has anyone some input on how to make YIN more robust with respect to to the transients during note attack and pitch changes?
That's great @makuearth! Would be awesome if you could make a PR with your fix.
@anandchandra50 I merged https://github.com/vadymmarkov/Beethoven/pull/55. Could you test the framework from master
to verify that it's fixed now?
@vadymmarkov I implemented makuearth's change -- if that's the only difference, then it is fixed.
Glad to hear that it worked. I made a PR in a fork.
Cheers, Martin
On 5 Jan 2018, at 03:53, Anand Chandra notifications@github.com wrote:
@vadymmarkov I implemented makuearth's change -- if that's the only difference, then it is fixed.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Awesome, then I'm closing this issue. Thanks @makuearth
Going back to makuearth's point, though, is there any way to make YIN more accurate when pitch changes?
By some reason mic recognition start only when
start
called twice: