Stunts Forum

Stunts - the Game => Stunts Reverse Engineering => Topic started by: clvn on May 31, 2010, 12:20:21 PM

Title: Stunts MIDI music
Post by: clvn on May 31, 2010, 12:20:21 PM
Hi,

I wanted to share with you this zip of MIDI files converted from the original game files:

http://dl.dropbox.com/u/213479/stuntsmidi.zip (http://dl.dropbox.com/u/213479/stuntsmidi.zip)

It is not a perfect conversion, things like modulation and pitch bend (?) are not converted. C++ source code for the converter is included.

There are also MIDI files from the game on this page: http://stunts.kalpen.de/specials.htm, (http://stunts.kalpen.de/specials.htm,) however these are not related.
Title: Re: Stunts MIDI music
Post by: llm on June 01, 2010, 12:48:40 PM
@clvn
you can use dosbox to record the "original" midi-music - maybe that helps creating (finding) the correct values for the converter
http://ubuntuforums.org/showthread.php?t=458629 (http://ubuntuforums.org/showthread.php?t=458629)

if someone wants to know why a conversion is needed
the target platforms for the port are windows and linux,... these do not allow direct control of the soundcard
so the music is needed in a more-up-to-date way for example, midi, wav,...
Title: Re: Stunts MIDI music
Post by: Duplode on June 01, 2010, 03:42:27 PM
Hello clvn and llm, long time no see! That is very cool... a while ago (in January, maybe) I did some "old-fashioned" (without using the disassembled code) experiments with the music tracks and found some of the basic things such as instrument codes, pitch and length of the notes. I still can't remember where I put the txt with the annotations, but anyway there shouldn't be much new stuff in it considering this midi converter works fine.

With the music being tractable already, the biggest challenge would be understanding the format used for the samples - which cover both the musical instruments and the engine sounds if I'm not mistaken.
Title: Re: Stunts MIDI music
Post by: llm on June 02, 2010, 03:42:22 PM
Quote
but anyway there shouldn't be much new stuff in it considering this midi converter works fine

clvn got still problems with the correct speed - as you can hear when listening to the midis in the zip-file

Quote
the biggest challenge would be understanding the format used for the samples - which cover both the musical instruments and the engine sounds if I'm not mistaken

any ideas :-)
Title: Re: Stunts MIDI music
Post by: llm on June 04, 2010, 04:46:56 PM
maybe it could help to have an good sounding midi (maybe an midi record of an roland mt32) to find out the right values by diffing to generated midi files
Title: Re: Stunts MIDI music
Post by: dstien on July 13, 2010, 10:17:00 AM
Nice work as usual, clvn! I'm a little late to the party, but I've finally taken a look on your converter. Attached is my updates with parsing of tempo, controllers, pitch and some meta events, corrected parsing of variable-length values (used for delta and note duration), and writing of track names.

The remaining unhandled codes used by the music files looks like loop markers.

I tried to read additional instrument settings from MTSKIDMS.VCE (commented out in the attached source), but the MT-32 patches just sounds awful, even on my 90s Roland GM module...
Title: Re: Stunts MIDI music
Post by: dstien on July 16, 2010, 01:15:58 PM
Did some more bikeshedding and attempts to parse voice properties again. Here's how the selection screen theme sounds now, converted to .mid and rendered through an MT-32 emulator (http://sourceforge.net/projects/munt/):
http://surr.no/pub/2010-07-16-Stunts_MT-32_SLCT.oga (http://surr.no/pub/2010-07-16-Stunts_MT-32_SLCT.oga)
Title: Re: Stunts MIDI music
Post by: CTG on April 17, 2011, 10:47:20 PM
Another version:

http://www.youtube.com/watch?v=nhjOk3Zeq4I#noexternalembed (http://www.youtube.com/watch?v=nhjOk3Zeq4I#noexternalembed)
Title: Re: Stunts MIDI music
Post by: CTG on May 12, 2012, 05:58:29 PM
That's metal power!!!

http://www.youtube.com/watch?v=vXl1qlunbng&feature=related
Title: Re: Stunts MIDI music
Post by: Chulk on May 14, 2012, 05:25:46 AM
Another version:

http://www.youtube.com/watch?v=nhjOk3Zeq4I#noexternalembed (http://www.youtube.com/watch?v=nhjOk3Zeq4I#noexternalembed)
This one is great.

Also, if you happened to play Captain Tsubasa 2 on NES and remember it's awesome music (1 per important team), here's a guy playing them on guitar

http://www.youtube.com/watch?v=ZkpFCZQfEKE
Title: Re: Stunts MIDI music
Post by: CTG on July 31, 2012, 03:11:02 PM
I would be glad to hear a Finntroll version.
Title: Re: Stunts MIDI music
Post by: CTG on November 03, 2014, 10:39:27 AM
Quote from: Who's Online
CTG   10:33:23   Viewing Who's Online.
csaba   10:33:07   Viewing dstien's profile.
dstien   10:32:46   Viewing the topic Stunts MIDI music.

Csaba was also watching this topic a few minutes earlier. Strange. (Btw Csaba is a Hungarian name.)
Title: Re: Stunts MIDI music
Post by: dstien on November 03, 2014, 11:19:17 AM
The kms2mid converter was just discussed in #stunts@EFNet. It's reassuring that you keep a watchful eye on the forum traffic, CTG. :D
Title: Re: Stunts MIDI music
Post by: CTG on November 06, 2014, 08:57:18 AM
http://www.youtube.com/watch?v=o7iLl-owwGk

Another metal version, LOL.
Title: Re: Stunts MIDI music
Post by: dstien on January 07, 2015, 10:12:02 AM
Stumbled upon the KMS article (http://www.vgmpf.com/Wiki/index.php?title=KMS) on the Videogame Music Preservation Foundation Wiki (http://www.vgmpf.com/). Apparantly, KMS stands for "Kris' (http://www.vgmpf.com/Wiki/index.php?title=Kris_Hatlelid) Music System" and is used by quite a few games. Would be interesting to see if these games share more similarities with Stunts.

(http://i.imgur.com/YOUpj5b.jpg)
Title: Re: Stunts MIDI music
Post by: zaqrack on January 07, 2015, 11:38:32 AM
Interesting! I am pretty certain 4D-Boxing is using the same main engine as Stunts.
Title: Re: Stunts MIDI music
Post by: Vector on March 06, 2015, 08:30:03 PM
I have a piano remix of the theme when the "Broderbund" text appears.

Bad that i don't have the link- i don't recorded that;