MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Alexey
MAME Fan
Reged: 07/20/13
Posts: 4
Send PM


MAME's OPL emulation
#311700 - 07/20/13 04:52 PM


MAME's opl emulators are using wrong key scale level:

0.0 dB/oct, 1.5 dB/oct, 3.0 dB/oct, 6.0 dB/oct instead of
0.0 dB/oct, 3.0 dB/oct, 1.5 dB/oct, 6.0 dB/oct



Phil Bennett
L'Emuchat
Reged: 04/20/04
Posts: 888
Send PM


Re: MAME's OPL emulation new [Re: Alexey]
#311702 - 07/20/13 06:36 PM


> MAME's opl emulators are using wrong key scale level:
>
> 0.0 dB/oct, 1.5 dB/oct, 3.0 dB/oct, 6.0 dB/oct instead of
> 0.0 dB/oct, 3.0 dB/oct, 1.5 dB/oct, 6.0 dB/oct

Wrong according to what?



Alexey
MAME Fan
Reged: 07/20/13
Posts: 4
Send PM


Re: MAME's OPL emulation new [Re: Phil Bennett]
#311718 - 07/21/13 03:20 AM


YMF262(OPL3) Datasheet
YMF278B(OPL4) Application manual



Phil Bennett
L'Emuchat
Reged: 04/20/04
Posts: 888
Send PM


Re: MAME's OPL emulation new [Re: Alexey]
#311736 - 07/21/13 03:28 PM


> YMF262(OPL3) Datasheet
> YMF278B(OPL4) Application manual

I see. Has this been verified on a real chip? There are many mistakes in Yamaha's datasheets and MAME's OPL emulation incorporates a lot of research based on experiments with real hardware.



Alexey
MAME Fan
Reged: 07/20/13
Posts: 4
Send PM


Re: MAME's OPL emulation new [Re: Phil Bennett]
#311738 - 07/21/13 05:36 PM


Yes. I verified.
Doom 2 MAP 09
MAME's emulation(SkullTag):
http://www.youtube.com/watch?v=Ms5xEbzDHtc
Real OPL(SB16):
http://www.youtube.com/watch?v=_RFd_rq0uvA

Edited by Alexey (07/21/13 05:38 PM)



Phil Bennett
L'Emuchat
Reged: 04/20/04
Posts: 888
Send PM


Re: MAME's OPL emulation new [Re: Alexey]
#311752 - 07/22/13 12:55 AM


> Yes. I verified.
> Doom 2 MAP 09
> MAME's emulation(SkullTag):
> http://www.youtube.com/watch?v=Ms5xEbzDHtc
> Real OPL(SB16):
> http://www.youtube.com/watch?v=_RFd_rq0uvA

Great, thanks. I'll see to it that it gets fixed.



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: MAME's OPL emulation new [Re: Phil Bennett]
#311775 - 07/22/13 04:51 PM


> > Yes. I verified.
> > Doom 2 MAP 09
> > MAME's emulation(SkullTag):
> > http://www.youtube.com/watch?v=Ms5xEbzDHtc
> > Real OPL(SB16):
> > http://www.youtube.com/watch?v=_RFd_rq0uvA
>
> Great, thanks. I'll see to it that it gets fixed.

Fair warning: most GPL projects like SkullTag use a very, very old version of MAME's FM which predates a lot of the quality work we've put into it since, oh, 2003 or so

People who've A/B'ed current MAME OPL with hardware via DOSBox generally don't show the sorts of obvious errors that Alexey's samples here do.



Stefan Lindberg
Arcade PCB collector
Reged: 11/27/04
Posts: 255
Loc: Sweden
Send PM


Re: MAME's OPL emulation new [Re: Alexey]
#311777 - 07/22/13 06:09 PM


For about two years ago so did i compare an MAME recording and an arcade PCB recording i had done from the game Vimana and i could not hear any difference at all.

Now i don't know about skulltag but never compare OPL2 with OPL3 as they sound different, not so obvious in some music while others sound totally different on OPL3 compared to OPL2.



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: MAME's OPL emulation new [Re: Stefan Lindberg]
#311778 - 07/22/13 06:32 PM


> For about two years ago so did i compare an MAME recording and an arcade PCB
> recording i had done from the game Vimana and i could not hear any difference at all.
>
> Now i don't know about skulltag but never compare OPL2 with OPL3 as they sound
> different, not so obvious in some music while others sound totally different on OPL3
> compared to OPL2.

Vimana doesn't have sound emulation in MAME?



Stefan Lindberg
Arcade PCB collector
Reged: 11/27/04
Posts: 255
Loc: Sweden
Send PM


Re: MAME's OPL emulation new [Re: R. Belmont]
#311779 - 07/22/13 06:41 PM


oops... :-)
I am getting senile... i cant even remember the name, but it was a game that uses OPL2 and i am sure it was a Toaplan game... now i don't dare to say any exact title ;-)


>
> Vimana doesn't have sound emulation in MAME?



Phil Bennett
L'Emuchat
Reged: 04/20/04
Posts: 888
Send PM


Re: MAME's OPL emulation new [Re: Phil Bennett]
#311782 - 07/22/13 10:36 PM Attachment: doom2_map9_149u1.flac 13098 KB (22 downloads)


> > Yes. I verified.
> > Doom 2 MAP 09
> > MAME's emulation(SkullTag):
> > http://www.youtube.com/watch?v=Ms5xEbzDHtc
> > Real OPL(SB16):
> > http://www.youtube.com/watch?v=_RFd_rq0uvA
>
> Great, thanks. I'll see to it that it gets fixed.

Here's the MESS 0.149u1 OPL2 rendition of Into Sandy's City



AWJ
Reged: 03/08/05
Posts: 936
Loc: Ottawa, Ontario
Send PM


Re: MAME's OPL emulation new [Re: Phil Bennett]
#311784 - 07/22/13 11:39 PM


> > > Yes. I verified.
> > > Doom 2 MAP 09
> > > MAME's emulation(SkullTag):
> > > http://www.youtube.com/watch?v=Ms5xEbzDHtc
> > > Real OPL(SB16):
> > > http://www.youtube.com/watch?v=_RFd_rq0uvA
> >
> > Great, thanks. I'll see to it that it gets fixed.
>
> Here's the MESS 0.149u1 OPL2 rendition of Into Sandy's City

Can we get before and after recordings to verify that this change really does make the difference?



Phil Bennett
L'Emuchat
Reged: 04/20/04
Posts: 888
Send PM


Re: MAME's OPL emulation new [Re: AWJ]
#311788 - 07/23/13 12:03 AM Attachment: old.flac 12464 KB (12 downloads)


> > Here's the MESS 0.149u1 OPL2 rendition of Into Sandy's City
>
> Can we get before and after recordings to verify that this change really does make
> the difference?

Oh ye of little faith...



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: MAME's OPL emulation new [Re: Phil Bennett]
#311790 - 07/23/13 01:47 AM


> > > Here's the MESS 0.149u1 OPL2 rendition of Into Sandy's City
> >
> > Can we get before and after recordings to verify that this change really does make
> > the difference?
>
> Oh ye of little faith...

Can you post it in some normal format? It's super-hard to play flac on Linux even though it's allegedly open-source. I have no idea why.

Edited by R. Belmont (07/23/13 01:47 AM)



redk9258
Regular
Reged: 09/21/03
Posts: 3968
Loc: Troy, Illinois USA
Send PM


Re: MAME's OPL emulation new [Re: R. Belmont]
#311791 - 07/23/13 03:11 AM Attachment: old.mp3 4995 KB (7 downloads)


Here ya go.

I don't know why, but there is a huge DC offset in the file...



Alexey
MAME Fan
Reged: 07/20/13
Posts: 4
Send PM


Re: MAME's OPL emulation new [Re: AWJ]
#311793 - 07/23/13 06:25 AM Attachment: mess3.wav 2693 KB (5 downloads)


I recorded MESS output, after fixing ksl.



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: MAME's OPL emulation new [Re: redk9258]
#311836 - 07/23/13 05:29 PM


> Here ya go.
>
> I don't know why, but there is a huge DC offset in the file...

Thanks.

There's definitely bad distortion in there due to the DC offset. I assume this is recorded from the MESS PC driver? Anything with a speaker or DAC output causes DC offsets bad in MAME/MESS. Real h/w couples the output through a capacitor to block that normally but we don't have any equivalent.



Master O
Yes, Even Parodius Music
Reged: 11/20/06
Posts: 1332
Send PM


Re: MAME's OPL emulation new [Re: R. Belmont]
#311841 - 07/23/13 06:59 PM


> > > Yes. I verified.
> > > Doom 2 MAP 09
> > > MAME's emulation(SkullTag):
> > > http://www.youtube.com/watch?v=Ms5xEbzDHtc
> > > Real OPL(SB16):
> > > http://www.youtube.com/watch?v=_RFd_rq0uvA
> >
> > Great, thanks. I'll see to it that it gets fixed.
>
> Fair warning: most GPL projects like SkullTag use a very, very old version of MAME's
> FM which predates a lot of the quality work we've put into it since, oh, 2003 or so
>
> People who've A/B'ed current MAME OPL with hardware via DOSBox generally don't show
> the sorts of obvious errors that Alexey's samples here do.

Skulltag is no longer maintained.

They're now working on it over here:

http://zandronum.com/



"Note to Noobs:

We are glad to help you but simply posting that something does not work is not going to lead to you getting help. The more information you can supply defining your problem, the less likely it will be that you will get smart-alec replies.

C.D.~"


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 133 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3330