Skip to content
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

Pitch Detector documentation/example? #19

Open
lucasburkholder opened this issue Jul 30, 2024 · 2 comments
Open

Pitch Detector documentation/example? #19

lucasburkholder opened this issue Jul 30, 2024 · 2 comments

Comments

@lucasburkholder
Copy link

Huge fan of this library. I just am a little confused about how to use the tPeriodDetection and tDualPitchDetector modules. tPeriodDetection_init() and tDualPitchDetector_init() both take in an input buffer and buffer size arguments, and tPeriodDetection_init() also takes in a separate frame size argument that is confusing me a little as well.

What are these used for, and how can I determine the right sizes for these arguments and buffers? The comments for tPeriodDetection don't seem to say anything, and this documentation doesn't include the tPeriodDetection_init() function. I assume these arguments don't refer to actual buffers of audio that get passed into the object, since tPerioDetection_tick() just takes in a single input sample, right?

Let me know if there are any examples or documentation somewhere that I'm missing. Thanks for your help!

@spiricom
Copy link
Owner

spiricom commented Jul 31, 2024 via email

@lucasburkholder
Copy link
Author

Okay that makes sense, thanks. So basically the user just allocates/frees the buffer and passes the object a pointer to it, rather than the object allocating its own?

If you are able to take a look and let me know, that'd be super helpful. Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants