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

xtract_tonality #72

Open
q-depot opened this issue Nov 6, 2014 · 1 comment
Open

xtract_tonality #72

q-depot opened this issue Nov 6, 2014 · 1 comment

Comments

@q-depot
Copy link
Contributor

q-depot commented Nov 6, 2014

The tonality seems returning a negative value, should I get a frequency or what kind of value should I expect?

I also was wondering how the function can compute the tonality only based on the flatness db.

@jamiebullock
Copy link
Owner

That's a good question. Tonality and flatness are essentially the same thing. In LibXtract xtract_tonality() is just a scaled version of the flatness measure and should give you a value in the range 0..1. The fact it is giving you negative values suggests that you are passing a positive value for the argv. Are you using the result from xtract_flatness_db() for the argv of xtract_tonality()?

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