Skip to content

Instantly share code, notes, and snippets.

@superctr
Last active March 19, 2017 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save superctr/b7748f92e9a07b22b5e7b8048540a757 to your computer and use it in GitHub Desktop.
Save superctr/b7748f92e9a07b22b5e7b8048540a757 to your computer and use it in GitHub Desktop.
add VGM extra header
ADR $BC
OVERWRITE 44
ADR $100
; Chip ID
; | Multiplication factor (plus 0x80)
; | | |
OVERWRITE 0C 00 00 00 00 00 00 00 04 00 00 00 01 12 00 80 81
; chip id table
;"SN76496" = 00
;"YM2413" = 01
;"YM2612" = 02
;"YM2151" = 03
;"SegaPCM" = 04
;"RF5C68" = 05
;"YM2203" = 06
;"YM2608" = 07
;"YM2610" = 08
;"YM3812" = 09
;"YM3526" = 0a
;"Y8950" = 0b
;"YMF262" = 0c
;"YMF278B" = 0d
;"YMF271", = 0e
;"YMZ280B" = 0f
;"RF5C164" = 10
;"PWM" = 11
;"AY8910" = 12
;"GameBoy" = 13
;"NES APU" = 14
;"MultiPCM"= 15
;"uPD7759" = 16
;"OKIM6258"= 17
;"OKIM6295"= 18
;"K051649" = 19
;"K054539" = 1a
;"HuC6280" = 1b
;"C140" = 1c
;"K053260" = 1d
;"Pokey" = 1e
;"QSound" = 1f
;"SCSP" = 20
;"WSwan" = 21
;"VSU" = 22
;"SAA1099" = 23
;"ES5503" = 24
;"ES5506" = 25
;"X1-010" = 26
;"C352" = 27
;"GA20" = 28
; volume example
; 80 80 = 0.50x
; 80 81 = 1.50x
; 00 82 = 2.00x
; 40 83 = 3.25x
@echo off
vgm_ptch -UpdateVer:1.70 -ResizeHead:288 %1
e:\program\xvi32\xvi32.exe %1 /S=extraheader.xsc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment