-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pYIN implementation #809
pYIN implementation #809
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! I've left some comments for changes.
import time | ||
import os | ||
|
||
filename = os.path.join(os.path.dirname(__file__) ,'../../audio/recorded', 'long_voice.wav') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This audio should be added to the essentia-audio
repository (do a pull request). What is the origin of the audio (license)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use the existing audios in essentia-audio. How can I use the audios there? How we add the link in this test .py?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a pull request with new audio files to add to essentia-audio.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pull request sent.
# check if estimations actually have some sense | ||
# it is better to have real case using a monophonic audio | ||
|
||
# def testARealCase(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a real regression test (given an audio input check if the resulting pitch values are as expected).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! I have changed waf for a flac file (to save some space).
@dbogdanov Hey, man, I did some comments on your comments. Could you check them when you are free? |
@ronggong Replied to your comments. |
@dbogdanov please resolve the conflicts. constantq.cpp can't be compiled in my c++, because it can't convert double complex to double. check MTG/homebrew-essentia#9 added math functions in essentiamath.h |
pitch += [f] | ||
voicedProbs += [vp] | ||
self.assertAlmostEqual(mean(f), freq, pitch_precision) | ||
# self.assertAlmostEqual(mean(voicedProbs), 0.6, vp_precision) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging now. Can I remove this line as it is commented? Or if that's useful to keep, then we can give additional comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove it, it is not important.
Everything merged, thank you for this great contribution!!! |
Implemented Pyin algorithm,
Wrote the unitest and pythontests
Wrote the documentation