This page is a wiki. Please login or create an account to begin editing.


19 posts / 0 new
Last post
YYsMG's picture
Offline
Joined: 2009 Aug 19
Extracting music from games/apps

Is it possible to do this? My first thought was that Resedit might be able to

I've not used resedit before but I have managed to locate the music files. I can copy them and paste them into a different resource, however thats about it. Im not too sure what format it all is or if there is a way to get them recognised by any other program

If anyone in the know has any tips or pointers, i would very much appreciate them
Thanks in advance

Comments

stoltenberg's picture
Offline
Joined: 2010 Sep 26

there was a specialized app, i can remember: http://www.riccisoft.com/soundextractor/

8-)

YYsMG's picture
Offline
Joined: 2009 Aug 19

Aye, that and Agent Audio are good for sounds

But for this example, the music is not a sound file. resedit has the music files in a bit called mdat. Not sure what that is or what it means. Anyone know?

bertyboy's picture
Offline
Joined: 2009 Jun 14

Sound Leech was the other top tool for extracting sound, in whatever format, into a Mac OS 7 sound resource. It was quite incredible, and the only trouble it eve had for me was when it would very rarely extract sound at twice the speed expected. A rinse through another sound app would fix this.

I know I still have it, I'll dig it out in the next 30 mins, it's only 60K uncompressed.

It is here: http://www.4shared.com/get/DueFvXHO/Sound_Leech.html
It comes with an old Word document from the author about how to use it.

Edit: Replaced 'xxx 7' by 'Mac OS 7' - IIGS User

CyberMonkey's picture
Offline
Joined: 2009 Sep 27

Sorry for such a thread necro.... But do you still have this utility? It is a Mac OS classic one I presume? I see there is a Windows utility of the same name. Unsure if they are related or not.

lilliputian's picture
Offline
Joined: 2010 Jul 29

Found it! Uploaded here.

CyberMonkey's picture
Offline
Joined: 2009 Sep 27

Excellent. Thank you!

nil0bject's picture
Offline
Joined: 2012 Nov 14

sometimes a dev will copy the resource out of a midi(or whatever) file and paste it into the resources of their app. I've had success copying the resource out of an app and pasting it back inside a real midi(or whatever) file.

You just have to determine what type of audio resource it is. Sometimes it's mentioned cryptically within the first few bytes of the resource.

mathieudel's picture
Offline
Joined: 2009 Dec 15

To follow your example, a midi file should start with 'MThd'.
However, embedded data is often customized over the standard on old games : shrunk, preprocessed or the like.
For example we were used to remove the header of each png file we embedded in our old games, and to keep only one centralized palette, just because we known they were all png files with the same palette... the generated files could only be read by us event if it was plain png data chunks inside !

IIGS_User's picture
Offline
Joined: 2009 Apr 8

A valuable source to extract picts from the game is Petris, please use ResEdit to extract them.

andoru's picture
Offline
Joined: 2012 Sep 21

Has anyone figured out a way to do this? I want to extract the tracks for SimCity2000. I opened up ResEdit and I could see the different midi files and the samples they play, but I can't copy them outside or able to make a new file and paste the hex values. Besides, I wouldn't even know how to make those midi files play the specific samples. So if anyone is able to help me I'd greatly appreciate it ^^

themacmeister's picture
Offline
Joined: 2009 Oct 26

You can copy/paste the midi file into a newly created file, then change the type/creator to midi, and it has a good chance of working (maybe). Can Opener may be able to get at those pesky files...

Also, Resorcerer 2.x is IMHO better than ResEdit for these sort of things.

Find out the correct type/creator for MIDI and samples (snd?) files -- and you are halfway there.

Best of luck!

andoru's picture
Offline
Joined: 2012 Sep 21

Thanks for the quick reply. This might show my inexperience with MacOS, but how exactly can I create a new file? Also I forgot to specify I run MacOS 7.5.5 it through BasiliskII

Daxeria's picture
Offline
Joined: 2009 Apr 8

SimCity 2000 for Mac not only uses its own samples, but a proprietary music engine. There was a project underway to hand-convert the tracks for other MIDI players, but to hear it you need an app that can read "soundfont" .sf2 files containing the samples (and it still won't sound identical to the game).

SimCity 2000 Macintosh MIDI Soundfont v0.4

andoru's picture
Offline
Joined: 2012 Sep 21

You're right, it doesn't sound at all like the music on the Macintosh. The only reason I need to do this is because I cannot get to record all the songs in-game. As it starts the tracks randomly I cannot get it to play the specific tracks I need and I end up hearing the same songs over and over again XD
But thanks for the link, it was quite interesting listening =)

YYsMG's picture
Offline
Joined: 2009 Aug 19

Imma bump this.

A couple of applications have been mentioned here that I dont think we have (assuming they are mac apps), these being Can Opener and Sound Leech.

I've been able to modernise some music files that have sat within an app with Rezycle on OSX but music files that sit externally from the programs executable remain unaccessable to me. I'm unsure what sort of format they sit in as they rarely contain any information.

The Snavely music files for example cant be opened in res edit or a midi player, and rezycle cant find anything to extract. Can anyone advise what could be tried next?

Cheers

WhosIt.There's picture
Offline
Joined: 2014 Aug 23

Not extracting, but the easiest way would probably be to run the game in an emulator on a new Mac and use a screen/audio recording app (e.g. Soundflower) to simply record the playing music. It would probably need a bit of post-editing to trim off any excess and looping.

IIGS_User's picture
Offline
Joined: 2009 Apr 8

Thanks for the Soundflower hint, this is a great addition to the system, and I've now read it works as input/output device right from the system settings. Also latest update made in 2020, so this must be a current piece of software.

WhosIt.There's picture
Offline
Joined: 2014 Aug 23

There are some other similar products, but Soundflower is free and pretty easy to use. The developer site is on GitHub.