Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7
Moderator: Moderators
Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7
Is there any possibility your data bus is miswired?
Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7
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.
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.
Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7
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.
Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7
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
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
Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7
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
see https://madscient.hatenablog.jp/entry/2013/07/10/032236
**EDIT** your VGM is FINE... if you emulate a YM2420
Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7
Attached a YM2413 pitch-register-rework of my own capture
- Attachments
-
- PSS140_DEMO(YM2413).vgm
- (85.76 KiB) Downloaded 64 times
Re: Capturing YM2413 patches from Yamaha PSS-140 for potential use with VRC7
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