Need help w/YM2413
Posted: Mon Jul 14, 2014 8:05 pm
				
				Ok, so I know the YM2413 isn't strictly Genesis, being a Japanese SMS-only chip for the most part. I asked this question on SMS Power but so far have gotten no response, probably due to a huge likelihood that the intersection of devs with any YM2413 knowledge, devs with C/C++ knowledge, and devs with JavaScript knowledge is only...myself. 
I'm almost done with porting the MAME/SMSPlus/Genesis Plus GX YM2413 (ym2413.c rather than emu2413.c) to my web VGM player but it sounds all wrong (ignore me muting all YM2413 channels except channel 1 for now). The songs to listen to are in the "test" playlist:
Please help me figure out what needs to be fixed so I can move on to adding unzip, writing a basic sampler script to handle YM2612 DAC, and finalizing VGM 1.50 spec on the web player, thanks!
			
I'm almost done with porting the MAME/SMSPlus/Genesis Plus GX YM2413 (ym2413.c rather than emu2413.c) to my web VGM player but it sounds all wrong (ignore me muting all YM2413 channels except channel 1 for now). The songs to listen to are in the "test" playlist:
- test-ym2413.vgm (an A440 played with the "guitar" instrument for 2/10ths of a second)
- BIOS.vgm (the SMS Space Harrier BIOS).
- Green Hills Zone OPLL.vgm (ValleyBell's OPLL cover); GHZ sounds particularly incorrect.

Please help me figure out what needs to be fixed so I can move on to adding unzip, writing a basic sampler script to handle YM2612 DAC, and finalizing VGM 1.50 spec on the web player, thanks!
 )  I really wish I could simplify the thing at this stage (especially with regards to testing op connection), but until I get working output I don't feel comfortable beyond actively muting all channels except ch 1 yet. So far adding logging results in me finding that my calculate function results in zeroes for output, so I'm already seeing results. This is very similar to what happened with my YM2612 script, so I hope I can narrow things down from this point.
 )  I really wish I could simplify the thing at this stage (especially with regards to testing op connection), but until I get working output I don't feel comfortable beyond actively muting all channels except ch 1 yet. So far adding logging results in me finding that my calculate function results in zeroes for output, so I'm already seeing results. This is very similar to what happened with my YM2612 script, so I hope I can narrow things down from this point.