Midi format music distortion
Posted: Sat May 02, 2020 11:39 am
Sorry to bother, I am new here and had problems playing music in Love2d.
When I use the 11.3 version of Love2d to play .mid files, there is severe distortion. In order to solve this problem, I changed the instruments many times, but there seems to be no difference between the instruments-all instruments sound the same, or they are the same at all.
The code I use is as follows:
Wikipedia says Love has supported .mid files since version 0.9.1, and I do n’t understand what went wrong. I checked the forum, but found no solution (except for using other formats of music, but that would make the .love file very large, since I've got a lot of music to play in game, each at a size of 1~10 mb; or maybe it's because I didn't look carefully and skipped the blog containing resolution).
Anyway, could anyone who knows how to solve this problem help me with it?
When I use the 11.3 version of Love2d to play .mid files, there is severe distortion. In order to solve this problem, I changed the instruments many times, but there seems to be no difference between the instruments-all instruments sound the same, or they are the same at all.
The code I use is as follows:
Code: Select all
function love.load()
musbg = love.audio.newSource("musbg.mid", "stream")
musbg : play()
end
Anyway, could anyone who knows how to solve this problem help me with it?