wave
wave copied to clipboard
music:detectBPM() crashes program on call
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