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

music:detectBPM() crashes program on call #5

Open
thacuber2a03 opened this issue Aug 11, 2022 · 0 comments
Open

music:detectBPM() crashes program on call #5

thacuber2a03 opened this issue Aug 11, 2022 · 0 comments

Comments

@thacuber2a03
Copy link

Error log:

Error

wave.lua:306: Attempt to get out-of-range sample!


Traceback

[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'error'
[love "SoundData.lua"]:95: in function 'getSample'
wave.lua:306: in function 'calculateEnergy'
wave.lua:357: in function 'calculateBPM'
wave.lua:297: in function 'detectBPM'
main.lua:9: in function 'load'
[love "callbacks.lua"]:136: in function <[love "callbacks.lua"]:135>
[C]: in function 'xpcall'
[C]: in function 'xpcall'

I know the feature is supposed to be experimental, but it would still be really cool it it at the very least worked, since this and lovebpm are the only music libraries that seem to be able to detect the BPM of a song, and honestly lovebpm isn't that accurate.
Love version, just in case: 11.4.0 Mysterious Mysteries

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