joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.66k stars 377 forks source link

Adlib/Sound Blaster Opl 2/3 To Midi #1312

Open anonyme-x22 opened 4 years ago

anonyme-x22 commented 4 years ago

Is your feature request related to a problem? Please describe. As you already known, no emulator can sound like the real hardware, i have tried mt-32 munt driver vs the real hardware, Sound Canvas VST vs VS SC-880. No deal, the real hardware sound terrible comparing it's digital form. It's a concept issue. (Code VS integrated Component) As you know, there aren't any opl2/3 card on pci slot. The closest thing is the TX81Z which can be quite close to the OPL 2/3. But how to send the opl2/3 information to midi ?

Describe the solution you'd like

Describe alternatives you've considered

joncampbell123 commented 4 years ago

That's not exactly trivial. I do remember having a Sound Blaster Live! PCI card that did a reasonable job doing something like this with DOOM (but with sound fonts) in a DOS VM under Windows 98 in most cases back in the day though.

anonyme-x22 commented 4 years ago

Hi,

You just have to redirect the opl2/3 data to midi and for the oscillators parameters a configuration file with cc/sysex adjusted to the synthetizer in use. The gus was using this trick but for it's data without all the oscillator parameter... Regarding the sound blaster live PCI, nothing after the SB2 has the original adlib soundchip. And after the SB16 no original OPL3. Some guys even says that the first/last is the sb pro 2.

Rgds,

yksoft1 commented 4 years ago

That won't get reasonable results when trying to convert Japanese-style FM tunes that using dynamic FM parameters and 4-operators mode of OPL3 to MIDI/PCM synth format. Try Rusty for DOS/V (@joncampbell123 should remember that game) with such things.

joncampbell123 commented 4 years ago

@yksoft1 I only test (so far) with the PC-98 version of Rusty, actually.

yksoft1 commented 4 years ago

That game had a full port to IBM systems, with FM music ported to OPL3 almost perfectly.

anonyme-x22 commented 4 years ago

hi,

I'm sorry, but the tx81z for example has the YM2414B which is a 4 operator FM synth which can handle all the settings of the opl 2/3 generators parameters. The dx-7 or the even the SY-77 are way more powerul...

Rgds,

anonyme-x22 commented 4 years ago

https://www.youtube.com/watch?v=emLC_oulmgg

RNMB15 commented 4 years ago

https://en.wikipedia.org/wiki/Yamaha_YM3812

https://eu.yamahamusicsoft.com/vse/fm-xpanded-psr-s?___store=eu_retail_de&

RNMB15 commented 4 years ago

http://www.vorc.org/text/column/hally/ymxxxx.html

http://www.ucapps.de/mbhp_opl3.html

http://www.polynominal.com/yamaha-opl3/

RNMB15 commented 4 years ago

The Yamaha SW20-PC is an OPL4 based wavetable sound card with 2MB Yamaha soundfont in ROM and 100% given backwards compatibility with OPL3 and OPL2 FM synthesis. Unlike other OPL4 cards, the Yamaha SW20-PC also has 128KB of sample RAM and an effects processor for karaoke. Praiseworthy way can be used via a Roland MPU-401 compatible interface controllable, General Midi compatible wavetable part also under DOS. Could you use the MPU-401 interface of the Yamaha SW20-PC to send the MIDI data as OPL 2/3 to the OPL4 chip fon of the sound card?

And synonymous could the sysex data from TX81Z be loaded?

I found these links to the sound card.

https://retrosoundcards.wordpress.com/2011/05/18/yamaha-sound-edge-sw20-pc/

https://retrosoundcards.wordpress.com/tag/yamaha-sw-20-pc/

http://www.oldschooldaw.com/forums/index.php?topic=673.0

https://download.driverguide.com/driver/Sound+Edge+SW20-PC/Yamaha/d1386422.html

http://www.amoretro.de/2012/06/yamaha-sw20-pc-yamaha-opl4-fm-wavetable-2mb.html

anonyme-x22 commented 4 years ago

Hi,

Thanks for all the links. This card is an isa one. The easiest way to open the adlib format is to intercept the adlib command and transform them into midi.

All the card made after the sb16 aren't original chip, and 90% aren't pci.

Of course the opz isn't fully opl3 compatible but 90% of the adlib game are opl2.

The onboard driver is good for emulating all those non original adlib compatible card.

This feature would expand the adlib to midi, in order for expander to work with and to not be bothered with real pci card and their emulated or genuine opl, drivers and so on.

You can plug a tg-77, dx-7, tx81z, or even pcm expander, and with the good sound bank plus the good configuration file for operators parameters, you can have very good result, and you can expand the adlib to opl 6 or pcm. (of course the pcm is more for fun as the fm modulation isn't provided) You could even plug a mt-32 and use the ring modulation for the feedback operator of the opl2. A lot of possibility with this feature would be offered to experience the opl2 domain in new ways.

Rgds,

Rgds,

RNMB15 commented 4 years ago

Is OPL4 from Yamaha SW20-PC compatible so that the player juke box Gold from the Adlib Gold Driver Disk can play the music with digital sample?

https://www.youtube.com/watch?v=ATb8zhdINpg

The driver software http://www.vogonsdrivers.com/getfile.php?fileid=641&menustate=0

anonyme-x22 commented 4 years ago

Hi,

A good start to look is the adlib midi driver on win 3.1/95...

Have a good day, Rgds,

jschwartzenberg commented 4 years ago

Here's a PCI card with OPL3 chip: https://en.wikipedia.org/wiki/Yamaha_YMF7xx

anonyme-x22 commented 1 year ago

Hi, Thanks for the link the purpose was to use the TX81Z instead of general adlib. The sound is way better even if not 100% accurate with my tx81Z to adlib translation table. Like for the special opl used in a card i forgotten the name which produced better results. Anyway after test the TX81Z furthermore the midi norm isn't switted for direct to hardware modification. So there are huge limitations specially in tracker mode. For game who use fast inst swapping (lemmings) also. So it can work only with adlib driver replaced by midi one and the corresponding midi files. I've finished UVI for the one interested in TX81Z video game integration: https://www.youtube.com/watch?v=4GYkuA-u3R4&list=PLDw5botqOVdxLwRANIF3e7mRaBdR87FcH

Rgds,