Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7

Discuss NSF files, FamiTracker, MML tools, or anything else related to NES music.

Moderator: Moderators

lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7

Post by lidnariq »

Is there any possibility your data bus is miswired?
User avatar
Ben Boldt
Posts: 1149
Joined: Tue Mar 22, 2016 8:27 pm
Location: Minnesota, USA

Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7

Post by Ben Boldt »

I do not think so because the patches match the ones plgDavid provided. I also hear the correct patches playing here and there in VGMplay. Did you see something that looked like the bits were scrambled around?

Based on what I saw on my scope and previous testing, the keyboard goes from one write to the next write about 1000 times slower than the maximum speed of my capture device.

Also, I have a 74HC273 between my microcontroller and the data bus. I have its rising edge triggered clock input connected to /WR nor /CE. I have jumpers where I can invert the clock signal as well. This signal also triggers the microcontroller to capture. I tried all 4 possibilities inverting both clocks to no avail. I also tried it without the 74HC273, connecting the microcontroller directly to the keyboard. I also played around with a 74HC373. None of these things helped. Some broke it or made it a lot worse. Others all produced a VGM very consistent with the one I uploaded.
plgDavid
Posts: 27
Joined: Tue Aug 07, 2012 11:01 am

Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7

Post by plgDavid »

nin-kuuku wrote: Tue Jul 06, 2021 5:41 am Here's VRC7 NSF. No drums yet.
Haha awesome, you made a NSF from my VGM dump?
plgDavid
Posts: 27
Joined: Tue Aug 07, 2012 11:01 am

Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7

Post by plgDavid »

Ben Boldt wrote: Tue Jul 06, 2021 10:09 pm Others all produced a VGM very consistent with the one I uploaded.
I typically use a Saleae Logic16, sample everything raw then save as bin and decode offline, using the Saleae UI as guide to the exact moment where the !CS/!WR data is stable-est ... I DO recall it was tricky at points. I might have a screenshot of that somewhere.
plgDavid
Posts: 27
Joined: Tue Aug 07, 2012 11:01 am

Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7

Post by plgDavid »

I still have the full PSS140 demo song dump as Saleae Logic session! (see pic)
According to my code, I grab the databus and A0 values on the falling edge of !CS when !WE is low.

Attached my VGMX dump of the demo song for comparison (don't ask its an internal format we use for research)
I just need to convert that to VGM . of course, its in YM2420 format, so you need to wiggle the pitch registers, but if you have chipsynth PortaFM (the demo works fine) you can select OPLL-2 in the drop down for the VGM player and it will emulate the pitch register diff
Attachments
pss140_demo_song.7z
(24.16 KiB) Downloaded 57 times
PSS140_logic.png
plgDavid
Posts: 27
Joined: Tue Aug 07, 2012 11:01 am

Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7

Post by plgDavid »

Re-reading your posts. I think you are just faced with the YM2420 pitch register diff
see https://madscient.hatenablog.jp/entry/2013/07/10/032236

**EDIT** your VGM is FINE... if you emulate a YM2420
Attachments
image_2021-07-08_151733.png
plgDavid
Posts: 27
Joined: Tue Aug 07, 2012 11:01 am

Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7

Post by plgDavid »

Attached a YM2413 pitch-register-rework of my own capture
Attachments
PSS140_DEMO(YM2413).vgm
(85.76 KiB) Downloaded 64 times
User avatar
nin-kuuku
Posts: 67
Joined: Tue Jan 24, 2017 1:23 am

Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7

Post by nin-kuuku »

plgDavid wrote: Thu Jul 08, 2021 11:58 am
nin-kuuku wrote: Tue Jul 06, 2021 5:41 am Here's VRC7 NSF. No drums yet.
Haha awesome, you made a NSF from my VGM dump?
Yes. And here's another with some DMC drum experiment. I'll update the VGMNSF thread at some point ... assuming I dont perish like some poor souls did in the black wednesday...
Attachments
PSS140_DEMO_ym2413_test.nsf
(77.43 KiB) Downloaded 58 times
Post Reply