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

Refactor PitchTracker to make it easier to use directly #58

Merged
merged 1 commit into from Dec 21, 2022

Conversation

jpsim
Copy link
Owner

@jpsim jpsim commented Dec 21, 2022

This will be useful for upcoming pitch detection unit tests.

  • Add PitchTracker.defaultBufferSize
  • Discard 0 pitch values
  • Add amplitudeThreshold parameter to control what the threshold should be
  • Process AVAudioPCMBuffer from PitchTracker instead of raw UnsafeMutablePointer<Float> frames

This will be useful for upcoming pitch detection unit tests.

* Add `PitchTracker.defaultBufferSize`
* Discard `0` pitch values
* Add `amplitudeThreshold` parameter to control what the threshold
  should be
* Process `AVAudioPCMBuffer` from `PitchTracker` instead of raw
  `UnsafeMutablePointer<Float>` frames
@jpsim jpsim marked this pull request as ready for review December 21, 2022 22:40
@jpsim jpsim enabled auto-merge (squash) December 21, 2022 22:41
@jpsim jpsim merged commit 1a89cdd into main Dec 21, 2022
@jpsim jpsim deleted the refactor-pitchtracker-to-make-it-easier-to-use-directly branch December 21, 2022 22:46
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

Successfully merging this pull request may close these issues.

None yet

1 participant