OpenXcom Forum

OpenXcom => Fan-Stuff => Topic started by: hellblade on May 11, 2011, 06:19:07 pm

Title: old Xcom1 dos music
Post by: hellblade on May 11, 2011, 06:19:07 pm
Since I asked, and searched all over, for original X-com1 dos music ... and could not find any

I decided to take Volutar's advice and record them myself.

Took me a week of spare time to finish, raise the volume, balance etc. etc. but finally I have it.

So I was thinking I might as well contribute them to here ... unless you guys were preparing to extract them from the game.
Title: Re: old Xcom1 dos music
Post by: SupSuper on May 12, 2011, 12:19:16 pm
The reason there's no "original X-Com1 DOS music" out there is:
1. It's an old music format not playable in modern media players.
2. It's virtually the same as the MIDIs in the Windows version.
3. OpenXcom already plays the original DOS music if it's available anyways.

The only reason it sounds different is because DOSBox emulates the old-timey SoundBlaster sound, so the only way to get that effect into OpenXcom is to emulate the old sound (https://openxcom.ninex.info/forum/index.php?topic=209.0) or, like you did, record the music from DOSBox and use that.

We probably can't include it in OpenXcom directly but feel free to post it here for other players to enjoy.
Title: Re: old Xcom1 dos music
Post by: hsbckb on May 13, 2011, 01:26:10 pm
Someone did this job before. Please take a look :

https://www.xcomufo.com/forums/index.php?showtopic=5536
Title: Re: old Xcom1 dos music
Post by: hellblade on May 14, 2011, 05:51:58 pm
Thanks for the research and help.  Yes I've been emailing him.  He stopped on his third song and posted it up for me to finish the rest.

What I can't figure out is why I can't load up the geoscape2,3,4 songs from my x-com game.  I have the cd version of "Unknown Terror" which is xcom1&2 on the same cd.  I tried letting geoscape run.  All i get is the same song repeating.  And no matter how many times i exit from a mission, the geoscape music is still the same one.  What in hell is going on???

Was also wondering if the dos version had 2 battlescape music.  I only ask cause I only remember one but I see 2 tracks on the PSX music.
Title: Re: old Xcom1 dos music
Post by: SupSuper on May 15, 2011, 02:32:08 pm
The X-Com PC version only has 2 Geoscape tracks, so it takes a lot of effort to hear the other track (and the song only changes on Geoscape start). It only has 1 Battlescape track too.

If you were clever enough you could edit the GM.CAT to get other tracks to play by default. :P
Title: Re: old Xcom1 dos music
Post by: hellblade on June 01, 2011, 09:05:58 pm
Thanks Subs, though my programming begins at 00 and ends at FF so I doubt my IQ will help me in this situation (at least I hope my IQ is irrelevent, lol)

I'm down to 3 last songs.  The Intro and 2 Endings.  The movie always finishes before the music and so I can't get the whole song!

Can anyone suggest how I can get this done?
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 02, 2012, 06:53:00 pm
Gentelmen, here it goes! :D
All original DOS music from X-com recorded with Sound Blaster AWE32 sound card! Together with strife67's patch (it returns original sounds from 1.0 and 1.2 DOS versions) it will give you the true feel of old X-com.
All regards go to kodan50 (for recording and sharing the music) and strife67 (for original sounds).

Links:
music - https://freakshare.com/files/ndshka2p/music.rar.html (Sorry, it's music from DOS version 1.4 and CE, but recorded throught old sound card)
sounds - https://www.strategycore.co.uk/files/index.php?dlid=796
Title: Re: old Xcom1 dos music
Post by: Volutar on May 02, 2012, 07:23:53 pm
This is not original DOS music from 1.0/1.2 version, this is just a midi recorded on particular audio card.
This topic was about old ADLIB music.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 02, 2012, 07:44:21 pm
Sorry, I have checked this out more carefully and I have to agree with you :( Are you interested in original music from old DOS versions? Right now I'm trying to record it using dosbox for emulating old sound blaster. I can post here a sample in a few minutes, can you check it?
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 02, 2012, 08:25:34 pm
As I sad, here is the sample - https://freakshare.com/files/w7jolast/Sample.mp3.html. Check it out. :)
Title: Re: old Xcom1 dos music
Post by: Volutar on May 02, 2012, 09:37:00 pm
There are already couple of tunes from here (https://www.xcomufo.com/forums/index.php?s=&showtopic=5536&view=findpost&p=190378). Though they aren't properly ended to be seamlessly "looped".
And yes, I'm pretty sure there should be at least 2 packs of soundtracks, from DOS version (adlib) and PS1.

Nice example.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 02, 2012, 09:49:59 pm
So, Volutar, what you say? Should I continue recording it?

Edit: PS1 music can be downloaded from here - https://www.xcomufo.com/x1music.html
And enother sample - https://freakshare.com/files/9s9n0one/Sample2.mp3.html (music when you lose)
Title: Re: old Xcom1 dos music
Post by: Daiky on May 03, 2012, 01:14:15 am
or SupSuper could add an AdLib emulator to openxcom :p this one apparently is used by dosbox: https://pastebin.com/SQF8ua8s
Just kidding, probably better recording it. But I don't think you don't actually need to play the game in dosbox and record it, there must be easier ways to just get it. Isn't it possible to play the tunes in winamp with the adplug plugin? Just guessing.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 03, 2012, 08:05:39 am
Yeah, Daiky, I will be happy if there is an easier way. But exept one question(how to extract .cat files? Advanced Disk Catalog does not work) the main question is not in playing these files in winamp with plugin, but in making OpenXcom playing these files throught winamp with plugin during the game. So, I think I will continue recording original music and then you will see how bad or maybe good it will be.
Title: Re: old Xcom1 dos music
Post by: Volutar on May 03, 2012, 08:19:42 am
I'm working on universal cat/uncater right now. Though not sure what kind of files be extracted, and how to play them :)
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 03, 2012, 08:32:11 am
Good luck to you, man! ;)
Title: Re: old Xcom1 dos music
Post by: Volutar on May 03, 2012, 11:57:49 am
Here it is. Proggy can both extract and pack files (though packing is slightly tricky - it requires file with list of files to pack).

I don't think it help much. Extracted files from adlib.cat are of unknown format (original file names certainly vanished). BTW, roland.cat is kinda same thing, but in slightly different form, though obviously is the same music (adlib/roland cards).
I think it will be easier to make adlib raw port output from dosbox and play it with winamp disk writer to create clear wav.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 03, 2012, 12:40:41 pm
So, here we go. Recording goes successfully so far. But can anyone give me saves where they can fly to mars and near the end of the game? I need to record two tunes("gmwin" and "gmnewwar") but don't have time to get to them in game by myself. :-[
Title: Re: old Xcom1 dos music
Post by: Volutar on May 03, 2012, 01:04:42 pm
With cat/uncat and trial and error you can go through every music part. You just need to find which ## in this file take initial track (story).
BTW some kind of trackname take place at the start of music files (adlib.cat, 128686 bytes):
0-Geoscape1 (14058 bytes)
1-nowt (14058 bytes)
2-Intercept (11134 bytes)
3-defend (2211 bytes)
4-defend (2211 bytes)
5-nowt (14058 bytes)
6-Enemy Base (2027 bytes)
7-Enemy Base (2027 bytes)
8-Mars (1470 bytes)
9-Mars again (1260 bytes)
10-Lose (4179 bytes)
11-Win (10025 bytes)
12-Story (2314 bytes)
13-Nowt (1260 bytes)
14-Nowt (1260 bytes)
15-Nowt (1260 bytes)
16-Nowt (1260 bytes)
17-Tactical section (4797 bytes)
18-Geoscape alternative (23088 bytes)
19-Intro1 (1155 bytes)
20-Intro2 (4406 bytes)
21-Intro3 (8794 bytes)

Equal track names doesn't mean equal music - better to rely on file length. So there are 11 unique game tracks plus 3 from intro.

And I've noticed some corrupted sounds appears here and there... Strange.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 03, 2012, 02:45:48 pm
Can you give me already extracted files beause I'm experiencing problems with cat/uncat?
Title: Re: old Xcom1 dos music
Post by: SupSuper on May 03, 2012, 03:49:39 pm
or SupSuper could add an AdLib emulator to openxcom :p this one apparently is used by dosbox: https://pastebin.com/SQF8ua8s
Just kidding, probably better recording it. But I don't think you don't actually need to play the game in dosbox and record it, there must be easier ways to just get it. Isn't it possible to play the tunes in winamp with the adplug plugin? Just guessing.
Hey, I dug out the only man on Earth that claimed to have knowledge of the mystical GM.CAT format from the depths of the OpenTTD forums, just so people playing OpenXcom with the DOS version could still listen to music, despite it being virtually the same as the Windows version MIDIs. You're welcome. :P

Seriously though, the problem isn't finding an Adlib emulator (there's a few around), but that the music file format used in Microprose games is a mystery. Someone with a lot more free time and patience than me might be able to figure it out from the X-Com source or by drawing parallels between the GM.CAT and ADLIB.CAT files.

Here it is. Proggy can both extract and pack files (though packing is slightly tricky - it requires file with list of files to pack).

I don't think it help much. Extracted files from adlib.cat are of unknown format (original file names certainly vanished). BTW, roland.cat is kinda same thing, but in slightly different form, though obviously is the same music (adlib/roland cards).
I think it will be easier to make adlib raw port output from dosbox and play it with winamp disk writer to create clear wav.
You might as well just record to WAV straight from DOSBox then. If you have trouble Zharik1999, I can do this later today.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 03, 2012, 06:20:53 pm
No, thanks SubSuper. :) Everything is going pretty good, I've already recorded most of the tunes and edited them to make sure they will loop correctly. I'm planning to post here all music you can already face in OpenXcom in a few hours.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 03, 2012, 09:04:53 pm
So, I submit to your court my recordings of original X-com DOS music. It is all in this archive(only "gmwin" tune is missing, but I will record it as soon as somebody will share with me savegame where he is near the end) Let's recall the old times, welcome to the ride! :D

Download - https://freakshare.com/files/lecfvf58/music.rar.html

Edit: If you aren't satisfied with how I edited the tracks to loop correctly, I can share with you uncutted and unedited versions right from DOSBox.
Title: Re: old Xcom1 dos music
Post by: Volutar on May 03, 2012, 09:24:49 pm
First thing - is to "null" all digital sounds, to clear music from them (using my CAT packer/unpacker), create CAT file with empty wav files.
The next thing is to repeatedly change track #12 from adlib.cat to every music track (using CAT). This track played after intro movie, when main menu appears, so it will be nice shortcut to record every track in clear form.

BTW, is xcom adlib music monophonic? I tried to set dualopl2 and found right channel muted.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 03, 2012, 09:43:29 pm
I did like you say. I disabled all sounds(except intro, because the music and sounds from it are in the same CAT) So, in these recordings you will hear no sounds and no clips, only music which I edited it to repeat and play correctly. As I have tested, everything works right :)
Title: Re: old Xcom1 dos music
Post by: Volutar on May 03, 2012, 09:52:39 pm
Zharik1999, I clearly hear kinda slap sound at start of gmgeo1, gmgeo2, gmmars, gmtactic, and slight artifact sound at start of gmlose, gmenbase, gmdefend. Only gmstory and gmnewmar seems to be clear.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 03, 2012, 11:29:46 pm
Do you hear this in game or in general? I don't know why, but before many tracks in OpenXcom clips appear, I don't remember them in recordings.
Title: Re: old Xcom1 dos music
Post by: Volutar on May 04, 2012, 04:49:23 am
I hear them in mp3s.

I've made my own approach to make these adlib tracks, and found one thing. Strangely, but DosBox plays adlib music in MONO mode, though, when port data recorded to disk (with ctrl+alt+f7) - it played with in_adlib in STEREO mode and gets greater quality. Another thing - version 1.2 have slightly different music format and files, other than from Steam. And I tried to use it, with kind of success. All 14 tracks recorded and encoded in mp3-128/mp3-160/ogg-128. Which is better?
BTW, "gmnewmar" music is not used at all. Not in original xcom, nor in openxcom (though it listed in loaded resources).
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 04, 2012, 01:35:28 pm
I think that you have made a great work. If you ask about the best quality, I guess it's mp3-160. And I can't wait to try your recordings. :)

About "gmnewmar", in my DOS version 1.0 X-com it plays when I start Cydonia mission.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 04, 2012, 01:39:22 pm
Also, I've checked my DOSBox recordings a little more carefully, and yes, they are far from ideal, but it's practically all what DOSBox can offer.
Title: Re: old Xcom1 dos music
Post by: Volutar on May 04, 2012, 01:50:16 pm
In 1.2 GMMARS tune (actually tune#8 from adlib.cat) played in cydonia mission brifing screen (both of them).
gmnewmar is a tune#9 with alot of cymbals, and I never heard it ingame.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 04, 2012, 02:00:57 pm
I see, the mysterious track #9 :)
By the way, when are you going to share with us the records?
Title: Re: old Xcom1 dos music
Post by: Volutar on May 04, 2012, 02:25:22 pm
I think 160kbit is more than needed, synthesized sound can be easely encoded almost without quality loss even at lower rates, so I will upload 128kbit mp3 versions. In couple of hours.
Actually I'm more interested in getting roland music versions.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 04, 2012, 02:29:16 pm
Ok, can't wait to hear it and thank you for you work.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 04, 2012, 02:32:02 pm
Can you explane me what is the difference between adlib and roland versions? So, you will upload a roland or adlib version?
Title: Re: old Xcom1 dos music
Post by: Volutar on May 04, 2012, 02:52:58 pm
I dont have roland and I dont even know how it sound like. I suppose it sound like ordinary midi but with roland samples. But who knows... 
Obviously I will upload adlib :)
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 04, 2012, 02:56:31 pm
Great! :D
Title: Re: old Xcom1 dos music
Post by: SupSuper on May 04, 2012, 06:58:30 pm
I hear them in mp3s.

I've made my own approach to make these adlib tracks, and found one thing. Strangely, but DosBox plays adlib music in MONO mode, though, when port data recorded to disk (with ctrl+alt+f7) - it played with in_adlib in STEREO mode and gets greater quality. Another thing - version 1.2 have slightly different music format and files, other than from Steam. And I tried to use it, with kind of success. All 14 tracks recorded and encoded in mp3-128/mp3-160/ogg-128. Which is better?
BTW, "gmnewmar" music is not used at all. Not in original xcom, nor in openxcom (though it listed in loaded resources).
You might have DOSBox / X-Com set up to emulate a mono soundcard instead of a stereo soundcard like SB16.

Also what music gets played where varied a bit between X-Com versions. I can confirm that 1.2 uses GMMARS as the Mars briefing music, but 1.4 uses GMNEWMAR, and the Windows version seems to use GMMARS again. Not sure why, I guess since GMMARS ended up doubling as the Debriefing music, it lost its dramatic flair by the time you got to Mars so they changed it up? :P
Title: Re: old Xcom1 dos music
Post by: Volutar on May 04, 2012, 07:04:02 pm
You might have DOSBox / X-Com set up to emulate a mono soundcard instead of a stereo soundcard like SB16.
Nope. I've tried different, and dualopl2 and opl3 which are stereo. Game adlib music stood mono. Still, I've managed to record stereo versions with in_adlib winamp plugin. Actually adlib music have its own dramatic sounds which aren't in midi or ps1 version.

Anyways I've left my thumb drive at work and can't upload :(
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 04, 2012, 08:20:25 pm
Yeah, no doubt that adlib music is the most dramatic and atmospheric. Waiting for you upload :)
Title: Re: old Xcom1 dos music
Post by: Volutar on May 05, 2012, 02:36:10 pm
Does this work? https://rghost.ru/37924426
I hope so. This link will live 2 weeks.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 05, 2012, 09:10:38 pm
It seems to work, I will fully test it a bit later. Thanks a lot, Volutar! :D
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 05, 2012, 09:47:03 pm
By the way, is there is a way to extract the original DOS sounds and put them in game or you think that this patch (https://www.strategycore.co.uk/files/index.php?dlid=796) is doing it pretty well?
Title: Re: old Xcom1 dos music
Post by: SupSuper on May 07, 2012, 03:56:47 am
By the way, is there is a way to extract the original DOS sounds and put them in game or you think that this patch (https://www.strategycore.co.uk/files/index.php?dlid=796) is doing it pretty well?
See this thread: https://openxcom.org/forum/index.php/topic,434.new.html#new
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 13, 2012, 10:53:17 am
So, I've tested these music more. It sounds fantastic except it doesn't loop really perfect, but I don't think it's really big issue :)
Title: Re: old Xcom1 dos music
Post by: Volutar on May 13, 2012, 07:26:01 pm
It doesn't loop perfectly because of "in-between" silent gap between tracks (probably because of buffering or something). Very first time when I heard most perfect looping was in Quake3.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 13, 2012, 08:19:32 pm
I see, but why in DOS they loop perfectly?
Title: Re: old Xcom1 dos music
Post by: Volutar on May 13, 2012, 08:29:10 pm
Because dos uses adlib FM synthesis, which works like midi, without audible gaps between notes.
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 13, 2012, 09:32:34 pm
I guess my last question was rather silly, thanks for explanation :)
Title: Re: old Xcom1 dos music
Post by: Bomb Bloke on May 15, 2012, 02:22:37 pm
Are you still wanting save games? I can generate pretty much any scenario you could wish for.

I'm not sure if they'd be of any use at this point, but I still have a couple of SB16's around here, too.
Title: Re: old Xcom1 dos music
Post by: Volutar on May 15, 2012, 04:18:26 pm
Bomb Bloke, no need to, we've already hacked and recorded all tracks with high quality :)
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on May 15, 2012, 04:27:52 pm
Yes, and that's great. Now I'm really obsessed with getting original DOS sounds from 1.0-1.2 versions of the game. :D
Title: Re: old Xcom1 dos music
Post by: Bomb Bloke on May 15, 2012, 05:09:56 pm
Tycho (https://www.strategycore.co.uk/forums/topic/9549-wrong-sounds-in-collectors-edition/) can probably answer any questions you have about those. He goes by Morgan525 (https://www.ufopaedia.org/index.php?title=User:Morgan525) on the UFOpedia wiki.
Title: Re: old Xcom1 dos music
Post by: luke83 on August 04, 2012, 02:58:17 pm
Are these music files still around?
Title: Re: old Xcom1 dos music
Post by: Zharik1999 on August 04, 2012, 03:19:22 pm
Of course, https://rghost.ru/39566489
Title: Re: old Xcom1 dos music
Post by: luke83 on September 21, 2012, 04:48:18 pm
Sorry Link is dead and i cant find where i saved these last time, can someone re-upload ?

 Also Any objections if i put them on the Modsite for long term storage ?
Title: Re: old Xcom1 dos music
Post by: Amunak on September 22, 2012, 02:04:05 pm
There (https://store.amunak.net/xcomost.zip) you go. Do whatever you want with it, though it should last for a while at my storage.
Code: (Checksums for xcomost.zip) [Select]
CRC-32: 411805d1
   MD4: a2fcc715a4da074a65d69a5d45cb77d5
   MD5: 19585cc1029649dca03b1fa2ef0aa8f3
 SHA-1: 1673d2d89b6ca3b3f6826d856c14e1590be3bb49
Title: Re: old Xcom1 dos music
Post by: Fenyő on April 18, 2013, 12:53:41 pm
There (https://store.amunak.net/xcomost.zip) you go. Do whatever you want with it, though it should last for a while at my storage.
It is the version which Volutar made, right?

I've noticed something. Although the files are STEREO, when i opened the files in Sound Forge, it became clear that it is in fact MONO. The same sound is on both sides! :(

Question: Is the game's original music stored as STEREO, or it is MONO? Because if it is STEREO, then we should attempt to capture it somehow in STEREO.
Title: Re: old Xcom1 dos music
Post by: Volutar on April 18, 2013, 02:36:47 pm
Adlib music which I've  converted is stereo. Even in sound forge it's obvious. So it is some other's. Frankly I've started this conversion because got this "mono" tracks, and wanted to make them better.
Title: Re: old Xcom1 dos music
Post by: Fenyő on April 18, 2013, 03:33:45 pm
Adlib music which I've  converted is stereo. Even in sound forge it's obvious. So it is some other's. Frankly I've started this conversion because got this "mono" tracks, and wanted to make them better.
Oh, and could you upload me to some place those STEREO tracks? Please! :)

EDIT:
I have completed the site i have planned.

So, for all those of you, who have problems with music, and who wants midi playback (converted to ogg) balanced and reliable, i recommend this:
Music & Sound Effects Collection site for OpenXcom (https://xcom-sounds.atw.hu/)
Title: Re: old Xcom1 dos music
Post by: Soldat on January 22, 2015, 11:39:49 am
Hi, everyone,

I notice all the uploads of this soundtrack are in OGG/MP3/FLAC formats. This makes perfect sense for the project, of course; but I was just wondering if perhaps anyone still has the .RAD (or .RAW) files as extracted from DOSBox? Sometimes I just want to listen to the music, and there's this lovely plugin for Winamp/Foobar called AdPlug, which allows you to choose between Ken Silverman's/Jarek Burczynski's/Harekiet's emulations, change EQ/sample rate (I'd prefer 48 kHz to 44.1, just because it's closer to authentic DOS' 49716 Hz), etc. Though of course the main reason I'd like my listening copy to be in .rad format is simply because it takes up way less space on the disk. ;D Anyway, I'd really appreciate it if you could hook me up, and I figured it couldn't hurt to ask.

Many thanks for the great work you've all done here!
Title: Re: old Xcom1 dos music
Post by: volutar on January 22, 2015, 12:30:33 pm
When I was creating my adlib tracks I was using that way. I've rendered those files with dosbox and recorded them into wav with Winamp. But later those raw register tracks were lost and I didn't manage to replicate them. The recording from the dosbox was kinda broken since then.
Title: Re: old Xcom1 dos music
Post by: Soldat on January 22, 2015, 09:44:15 pm
Oh, well. Thanks for looking for me and taking the time to respond. :)