Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Smallest possible sound files?
Smallest possible sound files?
Apr 29 2009, 7:00 pm
By: djinni  

Apr 29 2009, 7:00 pm djinni Post #1



Well i have a song from a SNES game in Midi form which is only 6kb for a 56 second go,
however you can't load into Starcraft as a midi [i assume]

However converting it to Wav for me leaves it at at least a hundred KB,
is there any way to convert it, with having a very minimal change in size?



None.

Apr 29 2009, 7:04 pm Falkoner Post #2



You can compress it more, the best file type for SC is 16 bit mono, for one, make sure it's always mono, since SC plays stereo wavs as mono anyway, and from there you can try reducing the quality until it's a the size you want, remember that with 16 bit, it will be smaller in the map than it is as a file, but not too much.

Use Windows Sound Recorder to do all this, forgot to say :P It's built-in, Start>All Programs>Accessories>Entertainment



None.

Apr 29 2009, 7:22 pm djinni Post #3



Hmm well cut its length to 10 seconds and got it to 75 kb :E
It may work, just have to decide if 75kb [total 450kb mapsize] will be worth it :]



None.

Apr 29 2009, 9:23 pm NudeRaider Post #4

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

You can reduce sampling rate to 11 or 8 kHz




Apr 29 2009, 10:54 pm rockz Post #5

ᴄʜᴇᴇsᴇ ɪᴛ!

Save it in Audacity using 16 bit mono at 11 or 8 kHz sample rate (just repeating what has been said). The smallest you can get is 16 bit mono, 8 kHz sample rate.

You say it's 56 seconds:

The bitrate is:
16*11 = 176 kbps = 22kB/s => 1232 kB
8*11 = 88 kbps = 11kB/s => 616 kB
16*8 = 128 kbps = 16kB/s => 896 kB
8*8 = 64 kbps = 8kB/s => 448 kB

MPQ archives 16 bit audio, generally at less than half the filesize, so use 16 bit to make it smaller, with a better bitrate. Take a look and see if you like how 8 kHz sample rate sounds. If you like it, go with that. It sounds to me like you are using 64 kbps, so redo the recording, and save it as 16 bit, 8 kHz. At 10 seconds, it will be 160 kB, but it will compress down to smaller than half.

I'm pretty sure MIDI works by simply calling WAV files and playing those, which is why it's so small.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Apr 29 2009, 11:56 pm Roy Post #6

An artist's depiction of an Extended Unit Death

Quote from Falkoner
...make sure it's always mono, since SC plays stereo wavs as mono anyway...
Lies! Lies and slander!

Compressed audio to 11.025KHz 16-bit Stereo using WSR (Windows Sound Recorder).
Imported using ScmDraft 2 with compression set to highest (default).The quality doesn't drop notably after the import compression.

Original size: 2533kb
Compressed wav size: 634kb
Map size after imported compression: 208kb

And yes, it plays in stereo (I picked an audio clip that's easy to determine this [only drums are heard on the right side at the beginning]).

On a side note, make sure that your wav file doesn't have any spaces in the name. (Example: Change "My music.wav" to "My_music.wav" or "MyMusic.wav"). If you don't, it's possible to run into a problem, such as the wav not playing when requested.

Post has been edited 3 time(s), last time on Apr 30 2009, 12:07 am by Roy.




Apr 30 2009, 12:54 am ClansAreForGays Post #7



Wow, if it actually play in stereo we have been living a lie for so long. HERESY! THE EARTH IS FLAT!




Apr 30 2009, 8:31 am NudeRaider Post #8

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from name:Zachary Taylor
I'm pretty sure MIDI works by simply calling WAV files and playing those, which is why it's so small.
Not exactly wav files. MIDI capable soundcards (basically all) have so called wavetables which store the different voices/instruments defined by MIDI standards. These voices are not premade and stored, but generated each time with the correct tone pitch. MIDI songs always sound a bit different on different sound devices because they use different methods to create the voices.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:05 am]
O)FaRTy1billion[MM] -- the setting exists, it's just hidden in a weird place
[04:04 am]
O)FaRTy1billion[MM] -- instead change "Microtile Overlay" to "Impassable"
[04:04 am]
O)FaRTy1billion[MM] -- er, wait, idk why i was looking for height
[04:03 am]
O)FaRTy1billion[MM] -- below the minimap should be a thing that says "Overlay Settings" with a little + button in the corner, press the + to expand it, uncheck Use Defaults, then change "Tile Overlay" to "Height"
[03:57 am]
Sylph-Of-Space -- Unless I'm dum (possible)
[03:57 am]
Sylph-Of-Space -- It would be so so so nice if SCMDraft had some kind of dedicated "walkability" view for the tilesets.
[03:53 am]
Sylph-Of-Space -- :'( dont cry for me cat-gentina
[09:18 pm]
Ultraviolet -- 🔪🐈
[12:34 pm]
NudeRaider -- curiosity kills the cat!
[2024-5-19. : 6:18 am]
Sylph-Of-Space -- No complaints here, i'm just curious!
Please log in to shout.


Members Online: AleXoundOS, Roy