Buffer detect pitch returns 0
-
I have a long audio file that contains a loop. I want to detect the pitch at different parts of the loop. I thought I would start with a simple test:
reg freq = buf.detectPitch(sound.getSampleRate(), 0, 44100);
But it always returns 0, any idea why?
-
Bump bump
-
@d-healey This isn't exactly what you're looking for but hopefully it can help a bit. Heres how i used detect pitch when i was trying to make a guitar tuner
HiseSnippet 2122.3oc2X0sbabaEdWIAEKZqj5LY5zq5fg8mgJwllTQ0sMdTBk3O1LQ+vPRqDmLYbf1EjDU6BrYWPIw5wy3a5L4wHOF8x7HzY5k8MnSuHuAsG.rK2conjkYZ7EgWrbwAmyAe37Cv4rcBENznHQnk8Z8mDPsruEp2DtbT8QDF2pcCK6kQUs1cR.IJh5ZYau7CUSXu1JV5e+vGsKwivcnojrrNRvbn6w7YxTpcp8ILOuVDWZeleFt2pVaGAutvSLNTsXUrBHNmPFROfnXaIjk8pMcYRQXOIQRirrWYWg6jdiDmwM7eDKhcrG0fzdfhLjaI7bUHV8tU8QLO2NIa1HKKaTmzs9xls96f1m4xlRO0D7KzSfSkHq8vdo7va4bvq5kAu4.I6LPZECjtMpmSHKPlNiBO2D0lKogCHfYOKTL7ZszNqhpK.N3xx9jSnsBgASknz8qT4NX3wFOnPgBfsORhOkDhMB25yqh2FqCAJOjJaNX.0QVpnYRLLaQkX26d3VToyHLA6xhB7HSNdLvYHNB7hNTbHEFPgnBrTfkin3F85f4T4YhvSxrjtAYWqFFMsqVS8zJZdK7CoRsJGvBA0TjdNru3Duh3FYQRlUYXHrJtAWXIJUUaAFFVNhJ6x3CMjASc.MTxnQkdVALtng5dT9P4nhe.98q.lOE8CF6CQHbN0KBHWsvymwdFaQ1FVe0R2kRbiWWEiyZ264wbogaBrm34.YpK7CDbXPhcHlKkoHUAGHjz8HGS8tTgmxQdAqCSFc0RlxRw7ndms.Y1ZqJkq7.L3Tji4fADOHj9MiA+9DrX.vRF94.DTYzQfXeYw5EuCtX8ei5YC8C8qMUOZoenG+P8C8q6nenec2heUdC8mvEGW8R2A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LaKWHCVJfR5DRCjagRaAIGff5+y0NQjJNbIX6E2El82hRuuMHjFPBo8Ec.9KEQ7C7ncgMBTanmv4DUT4EujNvfscUbTxItWiE4t7U++TGpVcEikPc9PAbgLU9IXCLMpkzIThMHdbE0XUfTOJ2UO3+B+hmrpZrc7jUSlLSE.GXZXT6mheG1KFmRinfDR634INSczBKNrFbNZZcDdSBFI3LGEICGIHcGen9SYBbeDIpOg4oxCNB7jZk7FHnH1x.nW5.gKXbPsHNfQbRGh5.naiTk5.QqPc8NSiZygqbAKfJR9FGFKB.Ge8IgpuvwxYpswDTpFAohKYzZ6niTy5P7rz03p.pkRmFaiAeJVQnACjV4P55HBzd7jHZY0TKJnzmc6QOOolrYB8mkhB4pNIRbwMg.SWHQTKdhmtCIDNtVRMGJjcvtBwI9DsqegpCL6QLuoYxah5ANK8GaP6p9k5w3OCtaC+PJ3FUGVdUeoq+w08KcEbs+RWG5HgkueHgGEHhxo3dTeVe3txnrDebDsEzgcWUXdV50Ejv4N0O7QsfM4bkoGQNNTmujjJj4X+kWnyZyeaXF9myAuq7S0me605Up+3q.X4qGbeIWcsVBF6wTYoM4mR8fjDMFeaHqX.YrmLgZ9f78EbQxgjoQ.covI7CGpRjSw9b2P6HkDmSRo7N05R8njrQy+1Z6AQgjv80mSsP1hW8ub5b8W+JjAtXUlI9mGUts7Oipb6U.JuNJE40wZ3SbBEO0wTAmJV9FZJv9lq6kYMz9pw3pVmZt4GopKwBZ4h8TGGk49tf8Y9xr4BHy6u.xr0BHyeXAj49KfL+wEPl+zUJi5xncFKE9lTQfPmll5ZraxUcapi5s9e.8M+aNB
-
@pluginboi Looks interesting thanks, could you explain how to use it?
-
@pluginboi said in Buffer detect pitch returns 0:
Heres how i used detect pitch when i was trying to make a guitar tuner
Looks cool. Does it work as a guitar tuner?