don't click here

Techno Soft Sound Engine Thunder Force 2, 3 & 4 Music Guide

Discussion in 'Technical Discussion' started by Dracula, Jun 30, 2013.

  1. Dracula

    Dracula

    Oldbie
    605
    0
    16
    I'm watching you!
    Converting NES Mappers to MMC5
    Music and Voice Locations for Thunder Force Series for Mega Drive

    Thunder Force II

    Music are located in Z80 Bank $78000

    Music Z80 Pointer Song Name
    01 Music 00 $0100 Knights of Legend
    02 Music 01 $10E7 Exceed
    03 Music 02 $175F Take Strict Precautions
    04 Music 03 $1B24 Illusion
    05 Music 04 $22AB Irrevocable Dream
    06 Music 05 $2A5C A Ray of Hope
    07 Music 06 $3100 Cruise Control
    08 Music 07 $340C Cloud of Dust
    09 Music 08 $391C Death Face's
    10 Music 09 $4259 Big na Okata 1
    11 Music 0A $467B Big na Okata 2
    12 Music 0B $4914 Big na Okata 3
    13 Music 0C $4CB7 Big na Okata 5
    14 Music 0D $4F39 Big na Okata 6
    15 Music 0E $5326 The Wind Blew All Day Long
    16 Music 0F $586B Mission 2
    17 Music 10 $5C23 Stage Clear
    18 Music 11 $5DF9 Game Over
    19 Music 12 $6011 Take Off One's Gloves (Ending Theme)
    20 Music 13 $6E1C Tan Tan Ta Ta Ta Tan
    21 Music 14 $708F Big na Okata 4

    Voices are located in Z80 Bank $70000

    Voices from $0000-$0046

    Voice 1 Example
    Z80 Pointer - $0000
    Pointer of the voice - $0100 - ? $0D7F - ? $002B
    --------------------------------------------------------------------------------------------------------
    Thunder Force III

    Music are located in Z80 Bank $78000

    00 Music 00 $0020 Back To The Fire (Hydra)
    01 Music 01 $0D6F Venus Fire (Gorgon)
    02 Music 02 $1953 The Grubby Dark Blue (Seiren)
    03 Music 03 $26B5 Truth (Haides)
    04 Music 04 $3088 Final Take A Chance (Ellis)
    05 Music 05 $3981 His Behavior Inspired Us With Distrust (Cerberus)
    06 Music 06 $47DE Hunger Made Them Desperate (Orn Base)
    07 Music 07 $5462 Final Moment (Orn Core)
    08 Music 08 $5A3E Gargoyle Boss
    09 Music 09 $6144 Twin Vulcan Boss
    10 Music 0A $653B King Fish Boss
    11 Music 0B $69E4 G Lobster Boss

    Music are located in Z80 Bank $70000

    12 Music 00 $0020 Mobile Fort Boss
    13 Music 01 $047F Off Luck (Orn Base Boss)
    14 Music 02 $0795 Be Menaced By Orn (Orn Core Boss)
    15 Music 03 $0EA8 The Wind Blew All Day Long (Opening Theme)
    16 Music 04 $14B2 Beyond The Peace (Stage Select)
    17 Music 05 $1A1A Stage Clear
    18 Music 06 $1BB3 Continue
    19 Music 07 $2036 Game Over
    20 Music 08 $22F3 A War Without The End (Ending Theme)
    21 Music 09 $26EB Present (Staff Roll)

    Voices are located in Z80 Bank $70000

    Voices from $0000-$0046

    Voice 1 Example located at $73478
    Z80 Pointer - $3478
    Pointer of the voice - $0050 - ? $0898 - ? $002B
    --------------------------------------------------------------------------------------------------------
    Thunder Force IV

    Music are located in Z80 Bank $78000

    00 Music 00 $0040 Fighting Back (Strite Part 1)
    01 Music 01 $0AAC Space Walk (Ruin Part 1)
    02 Music 02 $11FA The Sky Line (Air Raid Part 1)
    03 Music 03 $19F3 Sand Hell (Daser Part 1)
    04 Music 04 $229A Battle Ship (Space Cruiser Part 1)
    05 Music 05 $28C0 Great Sea Power (Volbados)
    06 Music 06 $2EA3 Sea Of Flame (Desvio)
    07 Music 07 $364E Metal Squad (Bio Base)
    08 Music 08 $4182 Down Right Attack (Wall)
    09 Music 09 $4B57 The Danger Zone (Versus)
    10 Music 0A $5021 What (Strite Part 2)
    11 Music 0B $5247 Danger!! Danger!! (Ruin Part 2)
    12 Music 0C $5401 Air Raid (Air Raid Part 2)
    13 Music 0D $5ACB Where! (Daser Part 2)
    14 Music 0E $5CF0 Neo Weapon (Space Cruiser Part 2 - Docking)

    Music are located in Z80 Bank $80000

    15 Music 00 $0040 Lightning Strikes Again (Opening Theme)
    16 Music 01 $0699 Don't Go Off (Course Select)
    17 Music 02 $0B67 Evil Destroyer (Gargoyle Diver)
    18 Music 03 $1456 Attack Sharply (Hell Arm)
    19 Music 04 $185A Simmer Down (Ratt Carry)
    20 Music 05 $1E91 Strike Out (Fomalhaut)
    21 Music 06 $2583 Stranger (Space Cruiser Boss)
    22 Music 07 $2B26 The Breaker (Volbados Boss)
    23 Music 08 $2E88 Rancor (Desvio Boss)
    24 Music 09 $32DC Phantom (Bio Base Boss)
    25 Music 0A $3502 Recalcitrance (Wall Boss)
    26 Music 0B $3958 War Like Requiem (Versus Boss)
    27 Music 0C $3F71 Tan Tan Ta Ta Ta Tan (Configuration)
    28 Music 0D $4296 Dead End (Game Over)
    29 Music 0E $45BA Count Down (Continue)
    30 Music 0F $487E Because You're The Number One (Ace Ranking)
    31 Music 10 $4FB0 Remember The ''Knight Of Legend'' (2-10 Ranking)
    32 Music 11 $5304 The Stars (Demo Ranking)
    33 Music 12 $55EE Shooting Stars (Easy Ending)
    34 Music 13 $57E8 Silvery Light Of The Moon (Normal Ending)

    Bonus Music are located in Z80 Bank $88000

    35 Music 00 $0040 Light Of Science (Hard Ending)
    36 Music 01 $052B Love Dream (Maniac Ending)
    37 Music 02 $0C2F Stand Up Against Myself (Staff Roll)
    38 Music 03 $14D0 Omake 1
    39 Music 04 $179B Omake 2 Thunder Force AC
    40 Music 05 $2324 Omake 3
    41 Music 06 $3126 Omake 4
    42 Music 07 $372C Omake 5
    43 Music 08 $3FF2 Omake 6
    44 Music 09 $4482 Omake 7
    45 Music 0A $497D Omake 8
    46 Music 0B $4F55 Omake 9
    47 Music 0C $5678 Omake 10

    Voices are located in Z80 Bank $70000

    Voices from $0000-$0046

    Voice 1 Example
    Z80 Pointer - $0000
    Pointer of the voice - $0080 - ? $0C00 - ? $002B
    --------------------------------------------------------------------------------------------------------
    Header in most Techno Soft Games for Mega Drive

    $00
    $01 Volume

    $02 Tempo modifier.
    $03 Pitch modifier.

    $04 ?
    $05 ?

    --------------------------------------------------------------------------------------------------------
    I was able to port Thunder Force 2 music to Thunder Force 4 and yes you can port songs from one Thunder Force game to another or another Techno Soft games for mega drive. You can also port voices too. I was wondering is it possible to port the full track of Big na Okata 4 from Thunder Force 2 X68000 and the voices. Note: Porting from T.S v1.21 to T.S v1.31 will work very well. The one from T.S vx.xx to another T.S vx.xx should work ok too. I tried to port 1.31 to x.xx and it didn't work very well but you can port x.xx to 1.2x and 1.3x. It will work but it might crash.

    Here's a video that I made: http://youtu.be/tiMrsnRx3LM
    Works well on Kega Fusion.
     
  2. Andlabs

    Andlabs

    「いっきまーす」 Wiki Sysop
    2,175
    1
    0
    Writing my own MD/Genesis sound driver :D
    You're not going to get very far by trying to drop in the X68000 music (if you can even get it out; Thunder Force II is a X68000 booter and the disc does not have a Human68k file system). You're going to have to manually rearrange the music for the Mega Drive sound hardware.

    Extra notes based on Thunder Force IV from ages ago (I no longer have this disassembly, alas, due to hard drive problems):
    Playing a song is done in pairs of commands: the first command prepares the song for playback and the second command actually plays the song. When issuing the command to prepare the song, you pass the bank and song ID; the 68000 routine. When issuing the command to play the song, you pass a flag stating whether you want the song to loop. This means you can play any song with looping (leading to interesting effects for songs that are not supposed to loop) or without (which shows that loop points are per-channel; if you do it on Remember Knight of Legend you'll see that the bass cuts off almost immediately).

    There are actually two sets of voices, one for music and one for sound effects. I forget which set the one you listed is.
     
  3. Dracula

    Dracula

    Oldbie
    605
    0
    16
    I'm watching you!
    Converting NES Mappers to MMC5
    I have manually rearranged all the music for the Mega Drive sound hardware.

    I disassembled the Sound Driver for Thunder Force II and one of the music tracks in Z80 format by using IDA Pro to trying to find the loop point and fade in and fade out and I like the way it came out. What I found so far in Thunder Force II Z80 Sound Driver by studying Sonic 2 Sound Driver is zYM2612_A0 = 4000h.

    Oh btw, there's is a tool that you can import and export voiced into a ROM or wave file called "Megadrive Voice Editor".

    I'm still doing my best to find them.
     
  4. Andlabs

    Andlabs

    「いっきまーす」 Wiki Sysop
    2,175
    1
    0
    Writing my own MD/Genesis sound driver :D
    zYM2612_A0 = 4000h is constant; it's part of the Z80 memory map on the Genesis;

    0000h..1FFFh - RAM (for the driver itself)
    4000h - YM2612 control 1
    4001h - YM2612 data 1
    4002h - YM2612 control 2
    4003h - YM2612 data 2
    6000h - bank switch serial bit
    7F11h - SN76489 control byte
    8000h..0FFFFh - ROM bank

    (there's mirroring across 8KB blocks in a lot of places)

    So wait, did you extract the music data from TF2X68000 or are you manually recreating the X68000 music?
     
  5. Dracula

    Dracula

    Oldbie
    605
    0
    16
    I'm watching you!
    Converting NES Mappers to MMC5
    Cool!

    No! I only rearranged the Mega Drive version. Not the TF2X68000 version.

    I found a topic here: http://forums.sonicr...pic=23055&st=15 about the MDX files of TF2X68000 version. I'm not sure if it's a dump file or not.
     
  6. Andlabs

    Andlabs

    「いっきまーす」 Wiki Sysop
    2,175
    1
    0
    Writing my own MD/Genesis sound driver :D
    MDX files are a log format like VGM, not a raw dump of the game data. I examined the MDXPG source code so I have a loose understanding of how the files work; I could write about them later.
     
  7. Dracula

    Dracula

    Oldbie
    605
    0
    16
    I'm watching you!
    Converting NES Mappers to MMC5
    I found this in Z80 RAM and something interesting when I was listening to "Death Face's" in Thunder Force II. Thanks to Exodus that will allow me to lock the hex ram. In Regen, it won't allow me to scroll down in Z80 RAM because it will crash.

    Z80 Music RAM Notes:

    Loop ?
    FM 1 ch.1 - $1990-$1992
    FM 2 ch.2 - $19E4-$19E6
    FM 3 ch.3 - $1A38-$1A3A
    FM 4 ch.4 - $1A8C-$1A8E
    FM 5 ch.5 - $1AE0-$1AE2
    FM 6 ch.6 - $1B34-$1B36
    PSG1 - $1B88-$1B8A
    PSG2 - $1BDC-$1BDE

    Fade in and out
    FM 1 ch.1 - $1B96-$1B9A
    FM 2 ch.2 - $1A0A-$1A0E
    FM 3 ch.3 - $1A5E-$1A62
    FM 4 ch.4 - $1AB2-$1AB6
    FM 5 ch.5 - $1B06-$1B0A
    FM 6 ch.6 - $1B5A-$1B5E
    PSG1 - $1BAE-$1BB2
    PSG2 - $1C02-$1C06