Skip to content

YM2413 Estimated ROM Instruments

Mitsutaka Okazaki edited this page Aug 20, 2020 · 76 revisions

These instruments have mainly been estimated by human eye and ear, with utilizing 192KHz/24bit audio recording from a YM2413B real chip. No oscilloscope is used.

  • Observed with 1.79MHz input clock instead of standard 3.58MHz.

  • Confirmed no remarkable noise by interleaving actual and fake parameters at 1000Hz (The author feels confident with TL value).

  • 🔉 Audio Sample

In HEX format

0x71,0x61,0x1e,0x17,0xd0,0x78,0x00,0x17, // 1: Violin
0x13,0x41,0x1a,0x0d,0xd8,0xf7,0x23,0x13, // 2: Guitar
0x13,0x01,0x99,0x00,0xf2,0xc4,0x21,0x23, // 3: Piano
0x11,0x61,0x0e,0x07,0x8d,0x64,0x70,0x27, // 4: Flute
0x32,0x21,0x1e,0x06,0xe1,0x76,0x01,0x28, // 5: Clarinet
0x31,0x22,0x16,0x05,0xe0,0x71,0x00,0x18, // 6: Oboe
0x21,0x61,0x1d,0x07,0x82,0x81,0x11,0x07, // 7: Trumpet
0x33,0x21,0x2d,0x13,0xb0,0x70,0x00,0x07, // 8: Organ
0x61,0x61,0x1b,0x06,0x64,0x65,0x10,0x17, // 9: Horn
0x41,0x61,0x0b,0x18,0x85,0xf0,0x81,0x07, // A: Synthesizer
0x33,0x01,0x83,0x11,0xea,0xef,0x10,0x04, // B: Harpsichord
0x17,0xc1,0x24,0x07,0xf8,0xf8,0x22,0x12, // C: Vibraphone
0x61,0x50,0x0c,0x05,0xd2,0xf5,0x40,0x42, // D: Synthsizer Bass
0x01,0x01,0x55,0x03,0xe9,0x90,0x03,0x02, // E: Acoustic Bass
0x41,0x41,0x89,0x03,0xf1,0xe4,0xc0,0x13, // F: Electric Guitar

MGSDRV MML

#opll_mode 0
#tempo 120

@15={ ; Reset
;       TL FB
        63, 0,
; AR DR SL RR KL MT AM VB EG KR WF
  15,15,15,15, 0, 1, 0, 0, 0, 1, 0,
   0,15,15,15, 0, 1, 0, 0, 0, 1, 0 }

@16={ ; Violin
;       TL FB
        30, 7,
; AR DR SL RR KL MT AM VB EG KR WF
  13, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0,
   7, 8, 1, 7, 0, 1, 0, 1, 1, 0, 1 }

@17={ ; Guitar
;       TL FB
        26, 5,
; AR DR SL RR KL MT AM VB EG KR WF
  13, 8, 2, 3, 0, 3, 0, 0, 0, 1, 1,
  15, 7, 1, 3, 0, 1, 0, 1, 0, 0, 0 }

@18={ ; Piano
;       TL FB
        25, 0,
; AR DR SL RR KL MT AM VB EG KR WF
  15, 2, 2, 1, 2, 3, 0, 0, 0, 1, 0,
  12, 4, 2, 3, 0, 1, 0, 0, 0, 0, 0 }

@19={ ; Flute
;       TL FB
        14, 7,
; AR DR SL RR KL MT AM VB EG KR WF
   8,13, 7, 0, 0, 1, 0, 0, 0, 1, 0,
   6, 4, 2, 7, 0, 1, 0, 1, 1, 0, 0 }

@20={ ; Clarinet
;       TL FB
        30, 6,
; AR DR SL RR KL MT AM VB EG KR WF
  14, 1, 0, 1, 0, 2, 0, 0, 1, 1, 0,
   7, 6, 2, 8, 0, 1, 0, 0, 1, 0, 0 }

@21={ ; Oboe
;       TL FB
        22, 5,
; AR DR SL RR KL MT AM VB EG KR WF
  14, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0,
   7, 1, 1, 8, 0, 2, 0, 0, 1, 0, 0 }

@22={ ; Trumpet
;       TL FB
        29, 7,
; AR DR SL RR KL MT AM VB EG KR WF
   8, 2, 1, 1, 0, 1, 0, 0, 1, 0, 0,
   8, 1, 0, 7, 0, 1, 0, 1, 1, 0, 0 }

@23={ ; Organ
;       TL FB
        45, 3,
; AR DR SL RR KL MT AM VB EG KR WF
  11, 0, 0, 0, 0, 3, 0, 0, 1, 1, 0,
   7, 0, 0, 7, 0, 1, 0, 0, 1, 0, 1 }

@24={ ; Horn
;       TL FB
        27, 6,
; AR DR SL RR KL MT AM VB EG KR WF
   6, 4, 1, 0, 0, 1, 0, 1, 1, 0, 0,
   6, 5, 1, 7, 0, 1, 0, 1, 1, 0, 0 }

@25={ ; Synthesizer
;       TL FB
        11, 0,
; AR DR SL RR KL MT AM VB EG KR WF
   8, 5, 8, 1, 0, 1, 0, 1, 0, 0, 1,
  15, 0, 0, 7, 0, 1, 0, 1, 1, 0, 1 }

@26={ ; Harpsicode
;       TL FB
        3, 1,
; AR DR SL RR KL MT AM VB EG KR WF
  14,10, 1, 0, 2, 3, 0, 0, 1, 1, 0,
  14,15, 0, 4, 0, 1, 0, 0, 0, 0, 1 }

@27={ ; Vibraphone
;       TL FB
        36, 7,
; AR DR SL RR KL MT AM VB EG KR WF
  15, 8, 2, 2, 0, 7, 0, 0, 0, 1, 0,
  15, 8, 1, 2, 0, 1, 1, 1, 0, 0, 0 }

@28={ ; Synthesizer Bass
;       TL FB
        12, 5,
; AR DR SL RR KL MT AM VB EG KR WF
  13, 2, 4, 0, 0, 1, 0, 1, 1, 0, 0,
  15, 5, 4, 2, 0, 0, 0, 1, 0, 1, 0 }

@29={ ; Acoustic Bass
;       TL FB
        21, 3,
; AR DR SL RR KL MT AM VB EG KR WF
  14, 9, 0, 3, 1, 1, 0, 0, 0, 0, 0,
   9, 0, 0, 2, 0, 1, 0, 0, 0, 0, 0 }

@30={ ; Electric Guitar
;       TL FB
        9, 3,
; AR DR SL RR KL MT AM VB EG KR WF
  15, 1,12, 0, 2, 1, 0, 1, 0, 0, 0,
  14, 4, 1, 3, 0, 1, 0, 1, 0, 0, 0 }

*0 = { c&c&c&c }
*1 = { r8@15c16r16 } ; to damp envelope

9 v15 l2

9 o1 [@0*0*1 @16*0*1 >]8 r
9 o1 [@1*0*1 @17*0*1 >]8 r 
9 o1 [@2*0*1 @18*0*1 >]8 r
9 o1 [@3*0*1 @19*0*1 >]8 r
9 o1 [@4*0*1 @20*0*1 >]8 r
9 o1 [@5*0*1 @21*0*1 >]8 r
9 o1 [@6*0*1 @22*0*1 >]8 r
9 o1 [@7*0*1 @23*0*1 >]8 r
9 o1 [@8*0*1 @24*0*1 >]8 r
9 o1 [@9*0*1 @25*0*1 >]8 r
9 o1 [@10*0*1 @26*0*1 >]8 r
9 o1 [@11*0*1 @27*0*1 >]8 r
9 o1 [@12*0*1 @28*0*1 >]8 r
9 o1 [@13*0*1 @29*0*1 >]8 r
9 o1 [@14*0*1 @30*0*1 >]8 r