VOGONS


OPN music on an ISA sound card?

Topic actions

First post, by TelamonLivesOn

User metadata
Rank Member
Rank
Member

I love listening to different chiptune music and like the sound of FM synthesis, but I can't help but feel that the Yamaha OPL chips are quite lacking in character. Sure, they hold a lot of nostalgia value but just don't sound right to me. Every time I hear Wolfenstein 3D music, I constantly hear wet farting noises and it just sounds awful to me. I generally prefer to have harsher, dryer sounds than mushy and wet sounds. I remember having played an old arcade game years ago called Thunder Dragon, which was my first exposure to a Japanese bullet hell game. I remember that the sound was disabled, due to the toll it took on the aging capacitors, CRT, and PSU. However, I remember hearing it after the speaker was plugged in one day and being amazed by the awesome music and sounds. Years later, I tried the game on MAME, but felt that something about the sound was off. I eventually found the proper-sounding music here: https://www.youtube.com/watch?v=T-zjgFA-cEE. I then learned that the chip powering this system was a Yamaha OPN sound chip (first version I believe), which also happened to be the same family that was used with NEC PC-98 expansion boards. That got me thinking: since these chips can be found for a few bucks online, and since documentation is regularly available, would it be feasible to create an ISA-based sound card compatible with the IBM-PC and clones that utilized one of the OPN chips? I am probably just dreaming, but this is one sound chip I would love to use in my dos machine. And yes, I know no games or programs would support it, but I could say the same about the Innovation SSI-2001 (except for a small handful of programs), which a replica was made from.

Edit: Please check out the game btw. You won't regret it, promise.

Reply 1 of 53, by Tiido

User metadata
Rank l33t
Rank
l33t

The chips themselves are not compatible with any IBM PC games so there's limited use outside VGM playback and such. PC98 software isn't going to be compatible for a variety of reasons, a lot of patching will be necessary to deal with both hardware and software incompatibilities...

T-04YBSC, a new YMF71x based sound card & Official VOGONS thread about it
Newly made 4MB 60ns 30pin SIMMs ~
mida sa loed ? nagunii aru ei saa 😜

Reply 2 of 53, by TelamonLivesOn

User metadata
Rank Member
Rank
Member
Tiido wrote on 2021-03-21, 01:37:

The chips themselves are not compatible with any IBM PC games so there's limited use outside VGM playback and such. PC98 software isn't going to be compatible for a variety of reasons, a lot of patching will be necessary to deal with both hardware and software incompatibilities...

I'm not worried about compatibility. I would gladly write my own program to support it.

Reply 3 of 53, by Tiido

User metadata
Rank l33t
Rank
l33t

Support in what way ? VGM player and some other music formats player shouldn't be too difficult to do. I'm now thinking how it would be nice if the VGM plugin for winamp/xmplay can be made to support the actual chips on expansion card in a PC, though these chips are very slow to access which will bring some complication to the matter since a lot of CPU time is lost in waiting for the chip to be ready for the next access... FIFO will be able to help though, similar to what most MPU401 interfaces have to reduce the same problem.

T-04YBSC, a new YMF71x based sound card & Official VOGONS thread about it
Newly made 4MB 60ns 30pin SIMMs ~
mida sa loed ? nagunii aru ei saa 😜

Reply 4 of 53, by TelamonLivesOn

User metadata
Rank Member
Rank
Member
Tiido wrote on 2021-03-21, 01:50:

Support in what way ? VGM player and some other music formats player shouldn't be too difficult to do. I'm now thinking how it would be nice if the VGM plugin for winamp/xmplay can be made to support the actual chips on expansion card in a PC, though these chips are very slow to access which will bring some complication to the matter since a lot of CPU time is lost in waiting for the chip to be ready for the next access... FIFO will be able to help though, similar to what most MPU401 interfaces have to reduce the same problem.

Native support in a sound engine I'm working on.

Reply 5 of 53, by SuperDeadite

User metadata
Rank Member
Rank
Member

I stick to MSX for VGMPlay usage. Incredibly versatile support for original chips. But very expensive to build a full setup.

For modern PC usage, the Japanese have made both G.I.M.I.C. and Re:Birth. Re:Birth supports more exotic chip setups, while G.I.M.I.C. has built in PCM for simplicity.
Again both are quite expensive to get ahold of though.

Modules: CM-64, CM-500, SC-55MkII, SC-88 Pro, SY22, TG100, MU2000EX, PLG100-SG, PLG150-DR, PLG150-AN, SG01k, NS5R, GZ-50M, SN-U110-07, SN-U110-10, Pocket Studio 5, DreamBlaster S2, X2, McFly, E-Wave, QWave, CrystalBlaster C2, Yucatan FX, BeepBlaster

Reply 6 of 53, by Joseph_Joestar

User metadata
Rank l33t
Rank
l33t
TelamonLivesOn wrote on 2021-03-21, 01:27:

I love listening to different chiptune music and like the sound of FM synthesis, but I can't help but feel that the Yamaha OPL chips are quite lacking in character.

I think how OPL3 sounds may depend on a couple of things. Firstly and foremost, was the music specifically made with FM synth in mind, or was it created using a General MIDI device and then converted? Not sure about Wolf3D, but Doom is certainly an example of the latter.

It might also matter how much much filtering is applied to FM synth by the sound card. Something like a SBPro will have slightly warmer, less harsh sounding OPL3 due to the always active low-pass filter. OTOH, a Yamaha YMF7x4 card doesn't apply any filtering to FM synth and can often sound cleaner/harsher.

Here's a track from Tyrian which I recorded on a Yamaha YMF744 card using Digital Out. Doesn't get much cleaner than that, I think.

PC#1: Pentium MMX 166 / Soyo SY-5BT / S3 Trio64V+ / Voodoo1 / YMF719 / AWE64 Gold / SC-155
PC#2: AthlonXP 2100+ / ECS K7VTA3 / Voodoo3 / Audigy2 / Vortex2
PC#3: Athlon64 3400+ / Asus K8V-MX / 5900XT / Audigy2
PC#4: i5-3570K / MSI Z77A-G43 / GTX 970 / X-Fi

Reply 7 of 53, by TelamonLivesOn

User metadata
Rank Member
Rank
Member
Joseph_Joestar wrote on 2021-03-21, 06:24:
I think how OPL3 sounds may depend on a couple of things. Firstly and foremost, was the music specifically made with FM synth in […]
Show full quote
TelamonLivesOn wrote on 2021-03-21, 01:27:

I love listening to different chiptune music and like the sound of FM synthesis, but I can't help but feel that the Yamaha OPL chips are quite lacking in character.

I think how OPL3 sounds may depend on a couple of things. Firstly and foremost, was the music specifically made with FM synth in mind, or was it created using a General MIDI device and then converted? Not sure about Wolf3D, but Doom is certainly an example of the latter.

It might also matter how much much filtering is applied to FM synth by the sound card. Something like a SBPro will have slightly warmer, less harsh sounding OPL3 due to the always active low-pass filter. OTOH, a Yamaha YMF7x4 card doesn't apply any filtering to FM synth and can often sound cleaner/harsher.

Here's a track from Tyrian which I recorded on a Yamaha YMF744 card using Digital Out. Doesn't get much cleaner than that, I think.

Sounds very clean. This is what I am talking about: https://www.youtube.com/watch?v=LuNcxehy3pY. It sounds like someone ate too many burritos.

Reply 8 of 53, by TelamonLivesOn

User metadata
Rank Member
Rank
Member

I am really starting to think that the OPL2/3 is very underutilized and that I have been spoiled with great utilization of similar chips. I am wondering if there is any way to create a decent GM -> FM converter. I do like Doom's OST on FM, but some other examples just don't sound good to me.

Reply 9 of 53, by Jo22

User metadata
Rank l33t++
Rank
l33t++
TelamonLivesOn wrote on 2021-03-21, 01:38:
Tiido wrote on 2021-03-21, 01:37:

The chips themselves are not compatible with any IBM PC games so there's limited use outside VGM playback and such. PC98 software isn't going to be compatible for a variety of reasons, a lot of patching will be necessary to deal with both hardware and software incompatibilities...

I'm not worried about compatibility. I would gladly write my own program to support it.

Well,.. Some DOS/V games use a middleware, PMDIBM.COM, to play FM music.
Personally, I do know of only a few DOS/V games, though.

See https://www.youtube.com/channel/UCM_rzw6WcXib … 22dos%2Fv%22%20

I vaguely remember, there also were combined PC98+DOS/V releases. But I could be wrong.
If that's true, though, they may do contain both OPL3/OPN resources on a single CD or disk set.
So it may be feasible to patch the DOS/V executables to use OPN on a homemade OPN sound card.

By the way, here's some more shameless self-adverising.. 😉

Re: Timeline of MS-DOS for NEC PC98 and more

It's by far not professional or complete, it's just a little overview/brainstorming thingy. 😅
Tiido likely knows more of these things.

Edit: Also interesting : https://www.reddit.com/r/pc98/comments/452bdu … y_and_princess/

Edit : Some DOS/V games from ELF (?) also used "PLAY5V.COM"..

https://forums.anandtech.com/threads/sb-midi- … ur-help.402783/

It's also mentioned at Vogons here, in this ancient thread from 2004 (please don't post, let it RIP 🙂).
OPL3(Yamaha YMF-262) control emulation is defective

Last edited by Jo22 on 2021-03-21, 19:57. Edited 3 times in total.

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 10 of 53, by Error 0x7CF

User metadata
Rank Member
Rank
Member

I think the only way to end up with decent GM -> FM would be if it's an OPL3 in 4-op mode. At that point it would have 6 voices with better capability than the YM2151/YM2164 found in the Yamaha CX5M/SFG-01/DX21/DX27/DX100/FB-01 since they have selectable waveforms to modulate with or to be modulated. That's 2 fewer than the 2151/2164 has total, but then you also still have 6 2-op channels left over for whatever else. I think if there was any quality way to convert GM to 2-op OPL2 FM then it would have been invented already when that was the only chip people had to work with on the PC platform. I'm willing to believe that area has some space to work with though, since I doubt most implementations used the OPL3-new features besides the doubled number of voices.

If you look at this person's channel, I believe all their OPL3 music is in the 2-op mode since they've said their tracker doesn't support 4-op, at which point you get 18 voices though the the songs use far fewer. OPLx is far less bad than most think.
https://www.youtube.com/channel/UC0KWAt5VoKrDyeDDNO4-_pg
Even just on the OPL2, you can do some decent sounding music, though it's obviously far more limited than the OPL3 or any 4-op FM chip:
https://www.youtube.com/watch?v=vtHMBpbMm2k

OPL3's 4-op mode is an area too poorly explored and it's a real shame. 6 4-op voices and 6 2-op voices.

Old precedes antique.

Reply 11 of 53, by SScorpio

User metadata
Rank Member
Rank
Member

The Falcosoft MIDI Player has OPL3 GM emulator VSTi which includes source. I believe the OPL3 implementation is based on DOSBOX OPL2/3 and Nuked OPL3 implementations.
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi

There's also FMMIDI which plays MIDI files on an emulated Yamaha YM2608 (OPNA).
https://github.com/Menezesworks/fmmidi

You could use either to see how they map GM to FM and create a TSR for DOS that would convert the GM to FM on a soundcard, or a Windows MIDI device driver to do the same.

Reply 12 of 53, by Jo22

User metadata
Rank l33t++
Rank
l33t++

Fun fact: In Japan (early 90s), MML was an alternative to General MIDI. 😀

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 13 of 53, by TelamonLivesOn

User metadata
Rank Member
Rank
Member
Jo22 wrote on 2021-03-21, 18:59:

Fun fact: In Japan (early 90s), MML was an alternative to General MIDI. 😀

I have never heard of that before. Looks like an interesting read.

Reply 14 of 53, by TelamonLivesOn

User metadata
Rank Member
Rank
Member
Error 0x7CF wrote on 2021-03-21, 18:42:
I think the only way to end up with decent GM -> FM would be if it's an OPL3 in 4-op mode. At that point it would have 6 voices […]
Show full quote

I think the only way to end up with decent GM -> FM would be if it's an OPL3 in 4-op mode. At that point it would have 6 voices with better capability than the YM2151/YM2164 found in the Yamaha CX5M/SFG-01/DX21/DX27/DX100/FB-01 since they have selectable waveforms to modulate with or to be modulated. That's 2 fewer than the 2151/2164 has total, but then you also still have 6 2-op channels left over for whatever else. I think if there was any quality way to convert GM to 2-op OPL2 FM then it would have been invented already when that was the only chip people had to work with on the PC platform. I'm willing to believe that area has some space to work with though, since I doubt most implementations used the OPL3-new features besides the doubled number of voices.

If you look at this person's channel, I believe all their OPL3 music is in the 2-op mode since they've said their tracker doesn't support 4-op, at which point you get 18 voices though the the songs use far fewer. OPLx is far less bad than most think.
https://www.youtube.com/channel/UC0KWAt5VoKrDyeDDNO4-_pg
Even just on the OPL2, you can do some decent sounding music, though it's obviously far more limited than the OPL3 or any 4-op FM chip:
https://www.youtube.com/watch?v=vtHMBpbMm2k

OPL3's 4-op mode is an area too poorly explored and it's a real shame. 6 4-op voices and 6 2-op voices.

The goal of my sound engine is to explore and utilize almost all features of any given sound device, along with being able to accept any community-made drivers without having to modify the engine itself. I might look into the extra OPL3 features so that I can utilize them.

Reply 15 of 53, by Joseph_Joestar

User metadata
Rank l33t
Rank
l33t

AFAIK, very few games used the OPL3 chip to its full potential.

The Cybersphere soundtrack is among those rare examples. That game actually requires OPL3 to work. It's not compatible with OPL2 devices.

PC#1: Pentium MMX 166 / Soyo SY-5BT / S3 Trio64V+ / Voodoo1 / YMF719 / AWE64 Gold / SC-155
PC#2: AthlonXP 2100+ / ECS K7VTA3 / Voodoo3 / Audigy2 / Vortex2
PC#3: Athlon64 3400+ / Asus K8V-MX / 5900XT / Audigy2
PC#4: i5-3570K / MSI Z77A-G43 / GTX 970 / X-Fi

Reply 16 of 53, by TelamonLivesOn

User metadata
Rank Member
Rank
Member
Joseph_Joestar wrote on 2021-03-21, 19:19:

AFAIK, very few games used the OPL3 chip to its full potential.

The Cybersphere soundtrack is among those rare examples. That game actually requires OPL3 to work. It's not compatible with OPL2 devices.

I'm hoping that my sound engine can be used with other old games and new projects (with a little tinkering, of course). Imagine Doom with even better FM music.

Reply 17 of 53, by Joseph_Joestar

User metadata
Rank l33t
Rank
l33t
TelamonLivesOn wrote on 2021-03-21, 19:30:

Imagine Doom with even better FM music.

Well, there is DMXOPL.

I haven't used that myself, but it does sound interesting.

PC#1: Pentium MMX 166 / Soyo SY-5BT / S3 Trio64V+ / Voodoo1 / YMF719 / AWE64 Gold / SC-155
PC#2: AthlonXP 2100+ / ECS K7VTA3 / Voodoo3 / Audigy2 / Vortex2
PC#3: Athlon64 3400+ / Asus K8V-MX / 5900XT / Audigy2
PC#4: i5-3570K / MSI Z77A-G43 / GTX 970 / X-Fi

Reply 18 of 53, by TelamonLivesOn

User metadata
Rank Member
Rank
Member
Joseph_Joestar wrote on 2021-03-21, 19:40:
TelamonLivesOn wrote on 2021-03-21, 19:30:

Imagine Doom with even better FM music.

Well, there is DMXOPL.

I haven't used that myself, but it does sound interesting.

That sounds awesome!!!

Reply 19 of 53, by Stiletto

User metadata
Rank l33t++
Rank
l33t++
TelamonLivesOn wrote on 2021-03-21, 01:27:

Years later, I tried the game on MAME, but felt that something about the sound was off.

If you haven't tried lately, you may want to try again later this month (or now, if you can compile your own). OPN emulation improvements went into MAME just a few weeks ago and will be released with MAME 0.230. We're hoping that MAME 0.230 will have OPL family improvements as well, but that might get pushed back until MAME 0.231, we'll see!

"I see a little silhouette-o of a man, Scaramouche, Scaramouche, will you
do the Fandango!" - Queen

Stiletto