libADLMIDI icon indicating copy to clipboard operation
libADLMIDI copied to clipboard

Crackling sound in certain MIDI file

Open freq-mod opened this issue 4 years ago • 13 comments

hoshipas.mid.zip -MIDI file, recording of a problem, and a bank file used for recording. Tried playing back this song with a few banks, results were different - some had just a very slight noise (Fat Man 2op), other crackle horribly (attached bank). Number of emulated chips dont matter. Neither does changing the emulation core. I see nothing suspicious with my bank. No idea what is wrong.

freq-mod avatar Dec 13 '21 21:12 freq-mod

Let's check on real OPL3 chip, because there is a similar crap happens with Heretic title theme when playing in OPL3 mode using libADLMIDI even on real OPL3 chip (because of SynthString1 at DMX-family banks)

Wohlstand avatar Dec 13 '21 21:12 Wohlstand

crackling happens on MIDI ch 0, 1, 2, (contrabass, fiddle, violin instrs. made by me), but who knows, analogous situation may occur here

freq-mod avatar Dec 13 '21 21:12 freq-mod

In case if it turns out to be OPL3 bug, would it possible to add OPL2 mode support?

freq-mod avatar Dec 14 '21 16:12 freq-mod

btw, I tried to play the thing at me (I used default settings), it didn't cause the same mess as you. Which program you had used to play the thing? Which settings mode you had used to play the thing?

Wohlstand avatar Dec 14 '21 21:12 Wohlstand

SMF-DSP 2 Nuked cores, automatic arpeggio off, automatic volume model

freq-mod avatar Dec 14 '21 22:12 freq-mod

SMF-DSP

Are you sure the latest libADLMIDI is bundled? Little note that some older versions of libADLMIDI had the bug because of modulation processing at the real-time API used by SMF-DSP.

BTW, Gonna add the auto-arpeggio flag into VLC plugin...

Wohlstand avatar Dec 14 '21 23:12 Wohlstand

Are you sure the latest libADLMIDI is bundled?

Well, now checked... it's 9 months old. So, I guess, I must ping @jpcima to update the submodules, if this is the case..

freq-mod avatar Dec 15 '21 06:12 freq-mod

@Wohlstand bad news - on libADLMIDIplay command line library utility, such crap is still there. Even on .wav dump! hoshipas.zip (listen, especially towards the end

Are you sure you played the file with the attached bank file from my zip? 2op Fatman seems to behave kinda properly, for some reason. try bank 72, alternatively (DMXOPL), or 59 (Fat Man 4op).

freq-mod avatar Dec 15 '21 07:12 freq-mod

Just for an experiment, I played the same thing using DosBox command_016.avi.zip

Wohlstand avatar Dec 15 '21 13:12 Wohlstand

and some crackling can be heard very clearly.

freq-mod avatar Dec 15 '21 14:12 freq-mod

I still need to try to play the same on a real OPL3 chip, however, the required computer is at another flat yet, probably I'll try to take it on this week.

Wohlstand avatar Dec 15 '21 15:12 Wohlstand

I recorded the thing using a real OPL3 chip, so, look at the result:

https://user-images.githubusercontent.com/6751442/146703089-2b0f1ace-d43f-4cee-9a4e-1a2cd3664450.mp4

I guess, for the control test I should convert the bank into multiple formats (such as DMX OPL and ASS TMB and try to play the same song via demo tools)

Wohlstand avatar Dec 20 '21 02:12 Wohlstand

Oh, it cracks too... so it can be an OPL problem, after all

freq-mod avatar Dec 20 '21 10:12 freq-mod

Closing this because of long time no response.

Wohlstand avatar Nov 14 '23 01:11 Wohlstand