{"id":13730330,"url":"https://github.com/adamski/pitch_detector","last_synced_at":"2025-12-24T14:30:54.562Z","repository":{"id":2704590,"uuid":"44386490","full_name":"adamski/pitch_detector","owner":"adamski","description":"JUCE module for pitch estimation","archived":false,"fork":false,"pushed_at":"2023-01-03T20:51:12.000Z","size":26,"stargazers_count":132,"open_issues_count":4,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-14T21:37:57.020Z","etag":null,"topics":["juce","pitch-estimation"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-16T13:21:54.000Z","updated_at":"2024-07-15T05:51:31.000Z","dependencies_parsed_at":"2023-01-13T12:02:09.039Z","dependency_job_id":null,"html_url":"https://github.com/adamski/pitch_detector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamski%2Fpitch_detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamski%2Fpitch_detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamski%2Fpitch_detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamski%2Fpitch_detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamski","download_url":"https://codeload.github.com/adamski/pitch_detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252986934,"owners_count":21836259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["juce","pitch-estimation"],"created_at":"2024-08-03T02:01:13.350Z","updated_at":"2025-12-24T14:30:54.524Z","avatar_url":"https://github.com/adamski.png","language":"C++","funding_links":[],"categories":["DSP"],"sub_categories":[],"readme":"# Pitch Detector\nJUCE module for pitch estimation\n\nPitchYIN class based on the YIN implementation found in the [aubio](https://aubio.org) library\n\nPitchMPM class adapted from the McLeod Pitch Method implementation in https://github.com/sevagh/pitch-detection\n\nThe updated version of the PitchMPM class now uses FFT for the auto-correlation function using the AudioFFT library (via the module wrapper at https://github.com/adamski/audio_fft). The previous time-based version is now in the `time-based` branch. \n\n### Usage\n\n**NOTE:** `bufferSize` should be a power of 2!\n\n```cpp\n// Class members\nPitchMPM pitchMPM;     \nAudioSampleBuffer sampleBuffer;\n\n// Setup / prepare\npitchMPM.setBufferSize (bufferSize);\npitchMPM.setSampleRate (sampleRate);\n\n// Process\nfloat newPitch = pitchMPM.getPitch (sampleBuffer.getReadPointer (0));\n```\n\n\n### TODO\n- [ ] Seperate time-based method into another class that can be used as an alternative to the FFT based method\n- [ ] Add FFT based YIN implementation (not a priority, MPM works well for my needs - PR's welcome)\n- [ ] Create base (virtual) `Pitch` class and add implementations as subclasses.  \n- [ ] Add other methods, e.g. Wavelet? \n- [ ] Remove JUCE dependency from implementations so that they can be used on embedded platforms, e.g. Arduino/Teensy. Will also need 'pluggable' FFT methods for this to work. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamski%2Fpitch_detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamski%2Fpitch_detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamski%2Fpitch_detector/lists"}