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;
Title: Re: Stunts MIDI music
Post by: Daniel3D on June 07, 2021, 10:30:22 PM
I've been reading up on old topics. And i noticed this,

I'm not really sure i understand everything correctly.
But it is possible to change KMS to Midi, so there is something similar about the files to convert.

I understand from the topic that the goal was to extract the music for use in the ported version.
Therefore, KMStomidi is only KMS to midi.

Is it possible to make the conversion the other way? Change midi to kms?
Title: Re: Stunts MIDI music
Post by: Cas on June 08, 2021, 02:59:36 AM
When I first quickly looked at a KMS file, I thought it was mostly MIDI, except for a different container format, but on a closer inspection (that took about five minutes), my conclusion is that it's not like that at all. It's more simple than MIDI. I'm sure that has already been understood before. I just wanted to see if a little glance was enough to recognise the format. From what I can see, indeed, it's a lot easier to turn it into MIDI than the other way around because the MIDI format allows for more versatility and this is more tracker-like.

If you were to compose new music, it'd be better to do it directly as KMS, it seems. It'd be easier to make a KMS editor than a MIDI-to-KMS converter and the result would sound better too. Anyway, I've only looked at the format for a short amount of time. I'm pretty busy. But it seems to be a simple format.
Title: Re: Stunts MIDI music
Post by: Daniel3D on June 10, 2021, 11:13:38 PM
Well, I talked to Kris Hatlelid 8) about it. Not much help there, although he is a nice guy.
I told him what we have been up to and asked if he happened to have the software lying around..
He responded:
Quote
Sadly, I don't have any tools from that time.   Cool that you're doing that though.

I also asked him if he composed the music himself and if he was interested in a copy of the anniversary edition.
Quote
Mike and I wrote the music. Brian and I did the music software. I’d love a copy when it’s done, I watched it on YouTube after a got your note. Good memories.

Since he is quick to respond and quite positive, I thought I ask him for a proper interview..
Awaiting his response..
Title: Re: Stunts MIDI music
Post by: Cas on June 11, 2021, 03:08:31 AM
It'd be nice if the community would prepare some agreed questions to make it easier for him to respond, kind of like the interview with Kevin Pickell
Title: Re: Stunts MIDI music
Post by: Daniel3D on June 11, 2021, 11:52:14 AM
It'd be nice if the community would prepare some agreed questions to make it easier for him to respond, kind of like the interview with Kevin Pickell
I agree.
And Kris Hatlelid has agreed with an interview.
Who prepared the one for Kevin?
Should a new topic be created for this?
Title: Re: Stunts MIDI music
Post by: Cas on June 11, 2021, 08:14:48 PM
:D  Yes, I think you could start a topic on that
Title: Re: Stunts MIDI music
Post by: Overdrijf on June 12, 2021, 12:41:06 AM
Nice! Good job!

Maybe we can get him to do a map too.  ;D
Title: Re: Stunts MIDI music
Post by: Cas on June 12, 2021, 09:32:37 PM
Ah!  That'd be very nice :D