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

Question: how to use algorithms other than "yin" for demo_pitch.py #399

Open
jlearman opened this issue Apr 26, 2024 · 0 comments
Open

Question: how to use algorithms other than "yin" for demo_pitch.py #399

jlearman opened this issue Apr 26, 2024 · 0 comments

Comments

@jlearman
Copy link

I'm running demo_pitch.py on sample files that contain one piano note each, and the results for notes below C2 are wrong (even after adjusting win_s and hop_s to 1 second's worth of samples.)

I tried passing values other than "yin" to pitch(), but it fails for anything other than "yin" or "schmitt" (which fails to detect any pitches, though perhaps because I'm not downsampling to 44100 Hz, the samples happen to be 48000 Hz.)

I tried all the names I found in https://github.com/aubio/aubio/blob/master/src/pitch/pitch.h:

  • default
  • schmitt
  • fcomb
  • mcomb
  • yin
  • yinfast
  • yinfft
    and all fail but yin and schmitt.

The failure is simply:

Traceback (most recent call last):
  File "/home/jlearman/git/jSfzTools/py3/demo_pitch.py", line 25, in <module>
    pitch_o = pitch(algo, win_s, hop_s, samplerate)
RuntimeError: failed creating pitch

How can I try other pitch detection methods?

Note: I'm not downsampling because that fails also, without much explanation other than "downsampling fails."

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

1 participant