Skip to content

music:detectBPM() crashes program on call #5

Open
@thacuber2a03

Description

@thacuber2a03

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions