VOGONS


OPN music on an ISA sound card?

Topic actions

Reply 20 of 55, by TelamonLivesOn

User metadata
Rank Member
Rank
Member
Stiletto wrote on 2021-03-22, 06:03:
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'm sure it has improved, since it has been years since I last tried it. I think the release was like from 2011 or 2012.

Reply 21 of 55, by bakemono

User metadata
Rank Oldbie
Rank
Oldbie

YM2203 is right at home on an 8-bit ISA card.

OPN/OPM family generally sound a lot different than OPL. I can't think of any soundtrack for one that might be mistaken as coming from the other. Maybe the OPL3 4-op mode would sound similar but it's hardly used and still lacks detune and some of the algorithms. I remember in the '90s there was an early version of Genecyst which used OPL3 to emulate the YM2612. It wasn't accurate but it was fun to try out various games just to see what the mutated music would sound like.

again another retro game on itch: https://90soft90.itch.io/shmup-salad

Reply 22 of 55, by TelamonLivesOn

User metadata
Rank Member
Rank
Member
bakemono wrote on 2021-03-22, 16:14:

YM2203 is right at home on an 8-bit ISA card.

OPN/OPM family generally sound a lot different than OPL. I can't think of any soundtrack for one that might be mistaken as coming from the other. Maybe the OPL3 4-op mode would sound similar but it's hardly used and still lacks detune and some of the algorithms. I remember in the '90s there was an early version of Genecyst which used OPL3 to emulate the YM2612. It wasn't accurate but it was fun to try out various games just to see what the mutated music would sound like.

I always found the OPM/OPN music to sound better than the OPL family most of the time. I have never liked the OPL2 and only respect the OPL3 more for what it can do. I just can't help but wonder how challenging it would be to put an OPN/OPM chip on an 8-bit ISA card. It probably wouldn't be worlds different or difficult to make as compared to an Adlib card. I love FM synth, but only when it's done correctly (i.e. not sounding like farts).

Reply 23 of 55, by TelamonLivesOn

User metadata
Rank Member
Rank
Member

I just checked on it, and the OPNA does support single-channel 8-bit ADPCM sound between 2 and 16khz. So theoretically, it should be possible to playback some audio samples on the chip. Though it would be better to introduce an onboard DAC with less limitations.

Reply 24 of 55, by Tiido

User metadata
Rank l33t
Rank
l33t

If you don't plan to play more than one sound at a time it can work, but for more things get difficult since the chip is really only meant to play stuff from its RAM which is assumed to be non-changing / infrequently updated, i.e for short SFX and drum sounds etc.

The RAM is pretty slow to update but you do get double buffer feature if you really wanted. I'm not sure how much overhead encoding samples to the required format will have if there's plan to software mix multiple channel together (which one will have to do with other PC specific things anyway if more than one channel is necessary).

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 25 of 55, by TelamonLivesOn

User metadata
Rank Member
Rank
Member
Tiido wrote on 2021-03-24, 13:09:

If you don't plan to play more than one sound at a time it can work, but for more things get difficult since the chip is really only meant to play stuff from its RAM which is assumed to be non-changing / infrequently updated, i.e for short SFX and drum sounds etc.

The RAM is pretty slow to update but you do get double buffer feature if you really wanted. I'm not sure how much overhead encoding samples to the required format will have if there's plan to software mix multiple channel together (which one will have to do with other PC specific things anyway if more than one channel is necessary).

It sounds like an external DAC would be better in this scenario.

Reply 26 of 55, by TelamonLivesOn

User metadata
Rank Member
Rank
Member

Just found a translated datasheet: http://nemesis.hacking-cult.org/MegaDrive/Doc … 0Translated.PDF. I'll need to read through it before I can figure out what a board design may look like. Do you have any recommendations for a separate DAC? Preferably, it should be 8-bit and support several voices/channels.

Edit: It appears that the YM3016 is often used as a companion DAC.

Reply 27 of 55, by Tiido

User metadata
Rank l33t
Rank
l33t

The FM chip itself needs a DAC for some of its analog sound output, which is one of the YM30xx series parts. AY part in the OPN/A/B chips has analog output from the chip and FM + ADPCM side is digital and needs a dedicated Yamaha made DAC for it. You then mix the analog sources together into final output.

For PCM sample streams you need a dedicated mechanism, cheapest and simplest being a Covox clone setup that captures LPT writes off the ISA bus (which is what I do on my Yamaha YMF71x card).

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 28 of 55, by TelamonLivesOn

User metadata
Rank Member
Rank
Member
Tiido wrote on 2021-03-24, 14:17:

The FM chip itself needs a DAC for some of its analog sound output, which is one of the YM30xx series parts. AY part in the OPN/A/B chips has analog output from the chip and FM + ADPCM side is digital and needs a dedicated Yamaha made DAC for it. You then mix the analog sources together into final output.

For PCM sample streams you need a dedicated mechanism, cheapest and simplest being a Covox clone setup that captures LPT writes off the ISA bus (which is what I do on my Yamaha YMF71x card).

I like the covox idea. It would probably be the most era-appropriate too.

Reply 29 of 55, by TelamonLivesOn

User metadata
Rank Member
Rank
Member

The Covox DAC is appears to only be mono, so two would be required to have it in stereo. This is probably fine though, since it would take almost no space up on the card.

Reply 30 of 55, by bakemono

User metadata
Rank Oldbie
Rank
Oldbie

Interfacing OPN to the ISA bus is quite simple, most of the circuitry on the card would be for the audio. It would be pretty similar to an Adlib card, even using the same Y3012 DAC, the only difference is the need to mix in the SSG sound. OPNA would be more complicated since it is meant to have external memory.

I'm not sure how the discussion changed to PCM. Aren't there enough existing sound cards for that? But if you wanted to play PCM from an OPNx for some reason there are software hacks to do it, or you could use those dual 8-bit I/O ports that they have. That would mean that the DAC data register is hidden in the register file instead of being at a separate I/O address which is not ideal, but hey it was good enough for SEGA...

again another retro game on itch: https://90soft90.itch.io/shmup-salad

Reply 31 of 55, by Jo22

User metadata
Rank l33t++
Rank
l33t++

Hi again. Sorry for my little necro, but I've found some interesting trivia.

The PC-98 (C-Bus) version of Creative's SB16 included the OPL3, but had an optional socket for an OPN!

This was for backwards compatibility, because the OPN was the PC-98's equivalent to our AdLib.
In a platform sense, I mean. We started with OPL2 rather than OPL (OPL1).

Here's what a Japanese website says (machine translation) :

Manufactured in February 1994. Sound Blaster 16 was very popular in the overseas IBM PC compatible market and was essential for both DOS and Windows games. However, in the PC98 market in Japan, there was the NEC PC-9801-86, which had expanded functionality while ensuring compatibility with the NEC genuine sound board (PC-9801-26K), which was already becoming popular. This was a minor presence.

In fact, very few PC98 version MS-DOS compatible software/games are compatible with this sound board, and it is of little use under DOS. However, limited to Windows 3.1 and 95, the PCM recording and playback function was surprisingly more stable than the 86 sound source.

If you install the optional Advanced Signal Processor (model number: SB-ADSP/J), you can use ADPCM hardware encoding when recording. In addition, by installing YM2203 and YM3014 (model number: SB-YM/J), you will be able to use the sound function compatible with PC-9801-26K, increasing its use for PC98 games. The MIDI sound source daughter board WaveBlaster can also be installed. [..]

sb16_cbus_a.jpg
Filename
sb16_cbus_a.jpg
File size
8.7 KiB
Views
498 views
File license
Fair use/fair dealing exception
sb16_cbus_b.jpg
Filename
sb16_cbus_b.jpg
File size
39.55 KiB
Views
498 views
File license
Fair use/fair dealing exception

Source: http://radioc.web.fc2.com/column/pc98bas/ct2720.htm

So in reverse, wouldn't it be just "fair" to make the OPN or OPNA available on ISA bus, too? 😺

I could imagine, it could eventually be useful for restoring PC-98 sound on the DOS or DOS/V ports of some popular titles.

Or simply lets us IBM PC users have something new old to develop for.

It would also be useful for a PC-98 emulator that runs on DOS (DOS/V) or Windows 3.1x.

Speaking of Windows 3.1x, a few early Windows 3.1 games did talk directly to the PC-Speaker (Jiji) or OPL2 (Warpath! etc).

Doing same with an OPN-based AdLib clone would be possible for sure.
So we could play with OPN on 16-Bit Windows, too, maybe write a composer for it.

Edit: Here's the PC-98's AdLib or Sound Blaster counterpart, so to say. The PC-9801-26K. It even used the LM386 amp.

pc-9801-26k_b.jpg
Filename
pc-9801-26k_b.jpg
File size
29.65 KiB
Views
484 views
File license
Fair use/fair dealing exception
pc-9801-26k_a.jpg
Filename
pc-9801-26k_a.jpg
File size
15.97 KiB
Views
484 views
File license
Fair use/fair dealing exception

Source: http://radioc.web.fc2.com/column/pc98bas/pc980126k_en.htm

"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 32 of 55, by SuperDeadite

User metadata
Rank Member
Rank
Member

If anyone really wants to get into PC-98 sound boards, this crazy device lets you connect two boards via USB to modern windows. The Neko Project II emulator has native support for it as well.
https://www.kadenken.com/view/item/000000000506

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 33 of 55, by bakemono

User metadata
Rank Oldbie
Rank
Oldbie

YM2203 ISA card schematic http://www.hyakushiki.net/misc/dualopn-schem-fixed.png (though I recommend changing R11 and R13 from 4.7K to 3.3K)

Attachments

again another retro game on itch: https://90soft90.itch.io/shmup-salad

Reply 34 of 55, by SuperDeadite

User metadata
Rank Member
Rank
Member

If anyone does decide to make an OPN based card, the YM2610B (OPNB-B), is the ideal chip, but sadly it's really hard to find legit sellers now, I'd say 90% of listed chips are fake.

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 35 of 55, by Jo22

User metadata
Rank l33t++
Rank
l33t++

Thanks! That sounds interesting! 😎
So there's a real chance to implement things in a manner that's worth it.

I wonder, would it be possible to create such a card in a way that's compatible with the PMD driver used on PC-98 ?

Or maybe is it a bit naive too assume that PMD musical driver will work as a drop-in replacement for PMDIBM (used by some DOS/V ports) ?

Or are there differences in the music formats being used on both versions ?
I'm just wondering, I vaguely remember informing myself about such things years ago but haven't been into the technical details for a while.🤷‍♂️

I merely know that certain DOS text-mode applications (basic ASCII) can run fine on both NEC and IBM based platforms without modification.
Unless invalid assumptions about i/o memory locations for certain devices are being made.

I also vaguely remember that some CD-ROM releases of certain titles had both minimum requirements for PC-98 and
DOS/V being mentioned.

So I assume these games must have been using drivers for graphics/sound to work on both platforms. Or use two separate executables.

Anyway, my memory is a bit sketchy here.
It's been a few years already and I really need to refresh my memories. 🙁

Could also well be that those games were from PC-9821 era already, which also had MS Windows titles at hand.

Edit: Just noticed I've mentioned PMD on first page already. My memory really leaves a bit to be desired. Oh my. 🙁

"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 36 of 55, by Tiido

User metadata
Rank l33t
Rank
l33t

There's a level of compatibility when the programs only use DOS API calls to do stuff, but when they start using BIOS calls or access hardware directly things break down. IO map and BIOS are completely different on these machines.

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 37 of 55, by megatron-uk

User metadata
Rank Oldbie
Rank
Oldbie

A single protected mode exe can run on both systems. There are patches to djgpp including calls to determine if you are on a dos or pc-98 system.

I have some of that documented on my wiki: https://www.target-earth.net/wiki/doku.php?id … g:pc98_devtools

My collection database and technical wiki:
https://www.target-earth.net

Reply 38 of 55, by Atomic Skull

User metadata
Rank Newbie
Rank
Newbie

When used properly the OPL3 can sound very very good indeed. Old MS-DOS titles mostly just set the parameters and then triggered notes with a MIDI file or something equivalent. It was easier to make a GM soundtrack and then use the OPL as an MIDI tone generator as an afterthought than to create a proper FM version of the soundtrack.

Here's some examples from youtube:

https://www.youtube.com/watch?v=1zagKyX5w_w
https://www.youtube.com/watch?v=MHf06AGr8SU
https://www.youtube.com/watch?v=WIfUr9wRsCQ

SuperDeadite wrote on 2024-01-18, 23:31:

If anyone does decide to make an OPN based card, the YM2610B (OPNB-B), is the ideal chip, but sadly it's really hard to find legit sellers now, I'd say 90% of listed chips are fake.

Imagine a world where a YM2203 based sound card managed to be first in the MSDOS PC gaming market and managed to get wide support, we might have eventually ended up with YM2610B sound cards and GM on MS-DOS games might never have taken off. An OPN board could have been cheaper than either the Game Blaster or the Adlib while still having adequate capability (three PSG and three 4op FM channels)

EDIT: Example of OPN music I found on youtube: https://www.youtube.com/watch?v=LElhSzlXSOQ

Pretty capable and if it had been significantly less expensive than an Adlib or Game Blaster such a card might have been a success.

Reply 39 of 55, by Atomic Skull

User metadata
Rank Newbie
Rank
Newbie
TelamonLivesOn wrote on 2021-03-24, 12:34:

I just checked on it, and the OPNA does support single-channel 8-bit ADPCM sound between 2 and 16khz. So theoretically, it should be possible to playback some audio samples on the chip. Though it would be better to introduce an onboard DAC with less limitations.

The OPNB has:

Four 4 operator FM channels (or 6 channels if YM2610B)
Three PSG square wave/noise channels (AY-8910 basically)
Six fixed frequency 12-bit 18.5kh ADPCM channels
One 16-bit ADPCM channel with playback frequency from 2~55.5hkz
ADPCM is compressed as 4 bits per sample and decompressed during playback.

So this thing would have made one hell of a sound card back in the day, especially the "b" version with 2 extra FM channels. Japanese PCs actually did go with the OPN family instead of OPL but I don't think they ever had an OPNB card. It's most famous use was in the SNK Neo Geo and here's what it sounded like there: https://www.youtube.com/watch?v=deb4BGycmF8