Closed SenhorFlibble closed 1 year ago
Lemme check the thing... Seems a small mistake in the code...
Just now I made a small fix that should fix this problem: I actually forgot to write a terminator to 9'th byte which should properly truncate the instrument name to 8 characters.
Please try to test out the CI-built version (you will find links in the ReadMe) document, it should work properly now.
@SenhorFlibble, Did you tested this?
Okay, I closing this.
@SenhorFlibble, Did you tested this?
I just ran a little test, some names are now truncated properly, but there's a another issue: some instrument names are not displayed at all for some reason: Here's what these looks like in the editor, there's a non-truncated name on the list and no name in the editing field:
This is another, unrelated issue, when name was blank, and OPL3-BE showing default MIDI names only (not custom). These names are just empty, unfilled, and OPL3-BE showing default MIDI name as a fallback when instrument name is empty.
I could allow (separately) auto-filling of empty names using a shorten variants.
I've been playing around with DMXOPL banks, trying to make them work in MBF 2.04 (Doom source port), and I noticed that while I can load GENMIDI.op2 from the DMXOPL project and save it as IBK, the instrument names are truncated to 9 characters, whereas the original format only allows for 8 characters max, as described here.
While this does not seem to affect how the actual instruments work in IBK, the files thus generated are not opened correctly by other utilities like SBTimbre. Only if I manually correct all instrument names not to exceed 8 characters, can IBK files generated by OPL3BankEditor (I'm using version 1.5.1 for Win32) be properly recognized by SBTimbre.
(I'm not suggesting that this is an important feature, but making generated IBK files accurate to their original specs would be neat.)