vgmrips

The forum about vgm files
It is currently 2023-10-03, 5:54:00

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2015-05-17, 8:55:00 

Musicians Musicians
Contributors Contributors
Offline
User avatar

Joined: 2012-09-29, 11:45:48
Posts: 226
Location: Australia
I got bored last night and attempted to write a simple program that converts F-Num commands for the FM channels on OPN chips, as I wanted to see if I could listen to ~8MHz VGMs on the Sega Megadrive, which runs on 7.67MHz therefore will sound flat when imported verbatim.

Source:
https://www.dropbox.com/s/nii8u5y1i6xj7 ... ate.c?dl=0

win32 binary:
https://www.dropbox.com/s/0s7fdiune8uju ... k.exe?dl=0

Working notes written at 2am-5am:
https://www.dropbox.com/s/8vb2tsdgusl48 ... y.txt?dl=0

Last updated 23 May 2015:
Changes:
  • DAC/Data block skipping fixed
  • Added cases of other VGM chip commands to skip.

Known bugs:
  • Still some issues with rounding issues on the extracted fnote. This has an effect for edge cases where the F-Num is very close to the 11-bit limits.
  • SSG frequency update not supported (yet. this is for YM2203/YM2608 integrated YM2149)
  • Low notes don't work correctly fixed!
  • Command-line argument validation not implemented.
  • Command-line usage not present (yet)
  • Seems to misbehave when other chips such as SN76489 are attached to the vgm. This otherwise works flawlessly on vgm's with just YM2612 - mostly fixed

Examples:
https://www.dropbox.com/s/x9krlwsgeus3b ... k.vgm?dl=0 (~8MHz -> 7.67MHz)
https://www.dropbox.com/s/94n4wsmdf07iy ... 0.vgm?dl=0 (~8MHz -> 3.58MHz)
EDIT- fixed? https://www.dropbox.com/s/7aumuciqoqsk7 ... d.vgm?dl=0
https://www.dropbox.com/s/rpbajx7gfijs4 ... x.vgm?dl=0

Problem examples:
https://www.dropbox.com/s/filmer206b16n ... l.vgm?dl=0 (when running vgm_opnclk with SN commands attached)
https://www.dropbox.com/s/hyrfk1phhzmll ... x.vgm?dl=0 (what happens when you don't update F-num for playback on Megadrive. Except PSG was a manual fix via vgm_ayconv (source was ym2608 SSG) -> vgm2mid -> mid2vgm_PSG)

_________________
-dj.tuBIG/MaliceX


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.050s | 13 Queries | GZIP : On ]