💦 CREATE AND FUCK YOUR OWN AI CUMSLUT 🔥 TRY NOW ♥
Create AI Cumsluts 💦
February 12, 2021

YM2151 Accuracy/HDMI Effects

(español abajo)

I started on FPGA retro developments with a Yamaha YM2151 module: the most important chip for arcade games. I made hundreds of measurements, and I designed the FPGA counterpart -JT51- to match those measurements.

But there were two things I couldn't measure: the noise channel and the low-frequency oscillator (LFO). I made an implementation based on Yamaha's public notes. Now, with detailed reverse engineered information available, it was time I went back and reviewed it.

I have spent several days making an exact version of the original LFO and noise channel. The difference is quite noticeable in many melodies and FX sounds. I invite you to start your favourite game and listen to it again.

By the way, thanks to Stefany Allaire, the JT51 is being used now as a replacement for YM2151 chips, as the original parts are becoming scarce.

Cores affected by this improvement: CPS1, Double Dragon 1/2, Bionic Commando, Contra and Street Fighter 1.

The MiSTer firmware recently got support for custom aspect ratios, so you don't have to stick to the default options. I have added support to all cores. Please follow the official Mr's instructions about it.

Finally, I have added an "old TV" option to all cores. It enables a horizontal filter equivalent to a TV with poor bandwidth. It reminds me of my old computer TV. It will look better if you use it together with scanlines (50% at least). The scaler LCD effect also looks very nice with it. This filter is completely optional and can be combined with the old ones.

Please run the updater or grab the files from jtbin.

I had one more thing for this week, but things didn't go as planned. Expect a CPS2 beta update for next week, and possibly other goodies.

Español

Empecé con desarrollos retro FPGA con un módulo Yamaha YM2151: el chip más importante para juegos de recreativa. Hice cientos de mediciones y diseñé la contraparte FPGA -JT51- para que coincidiera con esas mediciones.

Pero había dos cosas que no pude medir: el canal de ruido y el oscilador de baja frecuencia (LFO). Hice entonces una implementación basada en las notas públicas de Yamaha. Ahora, con la información detallada de ingeniería inversa disponible, era hora de pararse y revisarla.

He pasado varios días haciendo una versión exacta del LFO original y del canal de ruido. La diferencia es bastante notable en muchas melodías y sonidos FX. Os invito a poner vuestro juego favorito y volver a escucharlo.

Por cierto, gracias a Stefanie Allaire, el JT51 se está usando como reemplazo de chips YM2151, dada la escasez de estos últimos.

Cores afectados por esta mejora: CPS1, Contra, Bionic Commando, Double Dragon 1/2 y Street Fighter 1.

El firmware de MiSTer recientemente incorporó soporte para relaciones de aspecto personalizadas, por lo que no hay que ceñirse a las opciones predeterminadas. He agregado este soporte a todos los cores. Sigue las instrucciones oficiales de MiSTer al respecto.

Finalmente, agregué una opción de "TV vieja" a todos los núcleos. Permite un filtro horizontal equivalente a un televisor con poco ancho de banda. Me recuerda a mi viejo televisor para el ordenador. Se ve muy bien usado junto con líneas de escaneo (50% al menos). El efecto LCD del escalador también congenia muy bien. NB: este filtro es completamente opcional y se puede combinar con los antiguos.

Tenía algo más para esta semana, pero las cosas no salieron según lo planeado. Espera una actualización de la beta de CPS2 para la próxima semana y posiblemente otras cositas. 

Puedes usar el actualizador o directamente descargar desde jtbin.

Comments (53)

S
Shane Yates · March 1, 2021

The instruments sound incorrect now compared to the real hardware for Street Fighter II. The Blanka stage is the most obvious one, the lead tune which is a percussive bell is now weak and out of tune.

J
JOTEGO · March 1, 2021

I spent several hours on this last week and I will continue testing the modules to find the bug I introduced. I prefer not to roll back because this version fixed other problems. I will continue working on it this week.

D
David Filskov · February 24, 2021

Would your work on this be any help to the guy making the NEC PC8801 for MiSTer? - it has a newer FM chip though I think: http://fpga8801.seesaa.net Some tracks from the FM chip that's in 8801: https://www.youtube.com/watch?v=mDosHMMs9vM

J
JOTEGO · February 25, 2021

I have talked with him a couple of times. He seems to enjoy writing his own modules and doesn't seem interested in using other people's work.

G
Gary Nicholson · February 20, 2021

The only issue I'm having is the sound effects are pitched down lower. Example: in Double Dragon when inserting coin the sound is in the key of F instead of being in the key of A. In Mission 2 when the enemies come out of the elevator the sound is pitched lower. I hear the same thing Strider and Ghouls'N Ghosts. I don't know if the problem is on my end or not. Other than that everything else is solid and I really appreciate everything you do. :)

J
JOTEGO · February 20, 2021

Thank you for the detailed report. I have checked all possible frequency values against a reference. However, I am going to double check them. As far as I know, the pitch should be correct, though.

D
David Moylan · February 15, 2021

Love your work ;-) such curiosity and attention to perfection.

M
MEM3NTO · February 14, 2021

After running the latest update, appears CPS1.5 was updated and the aspect ratio is fixed. Thank you Jose for your timely response and fix. Your work on Mister is truly appreciated.

M
MEM3NTO · February 14, 2021

The latest update resolved aspect ratio issue in CPS1. But, CPS1.5 is still messed up. I tested mult games on that core, picture is still squished. CPS2 is fine tho. Thank you Jotego.

J
JOTEGO · February 14, 2021

It should be correct now. I am really sorry about this mess and I have taken measures to prevent it from happening again.

C
Carl Bown · February 14, 2021

The aspect ratio thing is a huge problem, across the board for most cores at 1080p though, personally I use 1440p which is amazing, but I'd like to use 1080p for lower lag, but it just isn't possible, as it's so squished.

J
JOTEGO · February 14, 2021

You can use the custom AR option now. It is setup via the ini file.

M
MEM3NTO · February 14, 2021

Tried the latest update and the aspect ratio issue still persists in mult cores. Sometimes the image is upside down, and a lot are squished.

D
David Filskov · February 14, 2021

I think there's an option - dip switch perhaps in the OSD - to flip the screen.

T
Torren Beitler · February 14, 2021

You are so very awesome at this stuff man!

T
The 100 Mega Shock ! · February 13, 2021

Tried the latest update and the issues I was having with audio are now gone.Thanks!

Y
You Tibbles · February 13, 2021

:)

M
Michele Fornasini · February 13, 2021

with this latest update the core CPS1, CPS1.5, for me, are perfect. good job!

M
Mr. Pippet · February 13, 2021

Has anybody noticed a video glitch in JT's cores now? About every 4 or 5 seconds the screen with glitch out with lines and then return to normal. Only noticed on JT's cores since the update. Thanks!!

J
JOTEGO · February 13, 2021

There hasn’t been any change related to that. Please try a cold boot.

A
Amador · February 13, 2021

For users of LCD monitors + OId TV filter : I noticed the picture is moved a few pixels to the right (offscreen). So there is a bit of cropping. No big deal.

D
David Filskov · February 13, 2021

Perhaps the Old TV setting only uses the core's resolution? - If it could use the HDMI resolution perhaps it would look even more authentic :)

J
JOTEGO · February 13, 2021

You can add scale filters already, so that option is already supported. Although this specific filter may not be there. There is an advantage to having pre-scaler filters too so combining both gives the best results

R
Raziel · February 13, 2021

The aspect ratio seems to be completely broken in CPS1 games now... Running in 1080p, I basically have two options, full screen stretches the image to 16:9, and original squashes the image so it looks like a vertical game. No option for a standard 4:3 horizontal image :(.

R
Raziel · February 13, 2021

I just tried 1941, and this is displaying in horizontal 4:3 when it should be displaying in vertical 4:3. So I think horizontal and vertical game aspect ratios got flipped somehow.

J
Jonlad1 · February 13, 2021

Also ffightae doesnt seem to be working?

J
Jonlad1 · February 13, 2021

Does Ghouls n Ghosts picture seem a bit squished now using jtcps1_20210213?

J
JOTEGO · February 13, 2021

I agree, I am reverting that change

N
NonstopXiaowei · February 13, 2021

Thank you for your great work!! in jtcps1_20210212, my sega saturn controller(Retro-Controllers-USB-MiSTer)always press down in game. but in jtcps15_20210212 it's good.

J
JOTEGO · February 13, 2021

Let me double check the file in case I uploaded a wrong compilation.

T
The 100 Mega Shock ! · February 13, 2021

Thank you very much for your hard work and I can definitely hear the improvement specially in the Double Dragon games.The only things I have found so far is when I put a Credit in Ghouls n’ Ghosts now I hear this strange “poping “ sound also I get random pops in Street Fighter 1 and during Strider atract mode transitions.

J
JOTEGO · February 13, 2021

Yes... last-minute edit that I didn't test. I have to stop doing that. Sorry about it. Please run the updater again.

A
Alan Shurvinton · February 12, 2021

Brilliant update as always 👍 Looks like it has broken some of the FM on Carrier Airwing. Inserting coins now also has white noise.

J
JOTEGO · February 13, 2021

Yes... last-minute edit that I didn't test. I have to stop doing that. Sorry about it. Please run the updater again.

J
José Antonio cano regajo · February 12, 2021

Muchas gracias por la explicación en castellano.

D
David Filskov · February 12, 2021

Perhaps unrelated - but must I do something to get music back into the Ghosts'n'Goblins (JT) mra? - the "normal" G'n'G mra has music but not the (JT) mra.

J
JOTEGO · February 13, 2021

Please run the updater again.

N
Nailbomb · February 12, 2021

Outstanding man, thanks so much for the strive for perfection, sound is incredible!

D
David Filskov · February 12, 2021

Ha that is so cool! - gotta check this out now!

B
Bryan Adams · February 12, 2021

Thank you for your attention to all of the details and your amazing work!

t
toolb0x · February 12, 2021

Coining up in Ghouls n Ghosts makes a weird noise now. Not sure if its just my setup or not.

J
JOTEGO · February 13, 2021

Yes... last-minute edit that I didn't test. I have to stop doing that. Sorry about it. Please run the updater again.

J
James · February 12, 2021

Looking forward to trying this later, thank you!

E
ElloMrChris · February 12, 2021

The Old TV really hurts my eyes, but the audio improvements are great. Thanks!

J
JOTEGO · February 13, 2021

Yes, it is not for everyone.

g
gros75 · February 12, 2021

nice !!!

S
Skutis · February 12, 2021

Thanks this is an important update for all cores to come, and existing as well.

y
yomitron · February 12, 2021

This man deserves the Nobel Piece Prize.

V
Víctor Gomariz Ladrón de Guevara · February 12, 2021

We love you Jotego for doing things like this!

M
Michael Yount · February 12, 2021

Thank you very much. Yet another round of incredible work and attention to detail.

N
Nifled · February 12, 2021

Gracias por tu pasión en este proyecto!! Esa obsesión tuya por la perfección, la disfrutamos los demás en cada partida ;)

C
Christopher rumford · February 12, 2021

Thank you for doing this.

C
Christopher rumford · February 12, 2021

The sound improvements is massive.