HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do I get midi?

06-11-2003, 06:23 AM#1
311
Is it even possible to get midi files into a map? I got tons of cool midi files but, I only see mp3 and .wav things I can add, is midi possible. I got a wc3 utilites thing at it says midi support patch. I click it and it says enabled but I go to sound editor, and I still cant add any midi. Is there somthing else im suppose to do? or is it just not possible?
06-11-2003, 04:04 PM#2
Earth-Fury
get a converter.
http://www.downloads.com
serch for one there.
06-11-2003, 04:29 PM#3
Peppar
Converting MIDIs to MP3 would kill off the great thing about MIDIs - their size. Warcraft uses MIDIs for ambient music (bird sounds, wind etc), so a solution mustn't be too far away.
06-11-2003, 11:32 PM#4
311
anyone? Come on all the good rpg is in midi format I needs help
06-12-2003, 08:47 PM#5
Peppar
It would seem that there is a way to implement MIDI. One way
was developed by BlacKDicK.
http://www.wc3campaigns.com/forums/s...threadid=11334

If you do it that way, you get it going without hassle, but you
can't distribute the map over B.Net if you want other players to
be able to listen to your music.

For your MIDIs to sound right you need an appropriate DLS-file to
be loaded. gm.dls is a DLS-file containing all
MIDI-instruments you need to play any MIDI-file.

You probably won't need all those instruments for your MIDI-file,
and there is a way to filter them out. With The Miles Sound Tools
you can easily do so. Put gm.dls and the MIDI-
file you want in the same folder. Select them in the Miles Sound
Studia and press "Filter DLS w/MIDI" (You don't want it
compressed). Save the new DLS as LordaeronSummer.dls.

In your map, use the Sound Editor in World Editor to import your
midi-file. Type *.mid and [ENTER] in the Open-dialog if you wish to
see MIDI-files instead of MP3's.

Create a new trigger, and add the command to play the music-file
you just imported.

Code:
(<·::) Sound - Play my_music

Then you convert the trigger to custom-text. Add these lines of
text before the Play-command in the first function:

Code:
call SetAmbientDaySound( "LordaeronSummerDay" )
call SetAmbientNightSound( "LordaeronSummerDay" )

which will make the trigger look like this:

Code:
function Trig_My_Sound_Actions takes nothing returns nothing
    call SetAmbientDaySound( "LordaeronSummerDay" )
    call SetAmbientNightSound( "LordaeronSummerDay" )
    call PlayMusicBJ( gg_snd_my_music )
endfunction

//===========================================
function InitTrig_My_Sound takes nothing returns nothing
    set gg_trg_My_Sound = CreateTrigger(  )
    call TriggerAddAction( gg_trg_My_Sound, function Trig_My_Sound_Actions )
endfunction

Now create a second trigger. Add an event for when you want
the music to play. Then add an action to call the above trigger
(There might be less complicated ways to do this but it will do).

Now save your map, and open it with any MPQ-editor. There are
two things you need to do here. First off, import the DLS you
created under the path Sound\Ambient\LordaeronSummer\.

The next step is to import a 0-byte dummy MIDI-file named
LordaeronSummerDay.mid. You can create it in windows using
notepad. Import it under the same path as the DLS-file,
Sound\Ambient\LordaeronSummer\.

A total of two files are imported:

Sound\Ambient\LordaeronSummer\LordaeronSummer.dls
Sound\Ambient\LordaeronSummer\LordaeronSummerDay.mid

(Note that you have to import these files each time you save your
map with the World Editor).

Now your music will play in-game, I hope. I know that my english
isn't the best and that my explanations needs an upgrade, so
please reply with any questions you might have. There might be
some errors as well. Please inform me of these.

Greetings, Peppar.
06-12-2003, 08:59 PM#6
311
Thanks for the response, but nevermind lol, Im not pro map maker like most of you I dont have a clue about custom text, and all the file stuff renaming dummy files ,mpq editing. Im not experiancd in any of that stuff. Thanks 4 trying tho :). Anyone know of an easier way? I downloaded w3m utilities and it has a button called midi support, It still only lets me choose mp3/wav files in the sound editor though, so I dunno how it works
06-12-2003, 11:27 PM#7
Peppar
Thanks. :)

In the "import external music" dialog write *.mid where you are supposed to write the filename and press enter to see MIDI-files.
06-13-2003, 12:39 AM#8
311
Ya I can get midi files into my map now, by just typing in the file name ex: 311music.mid, and put it in the sound editor and listen to it there, however in game it wont work it just plays no music and u hear birds chirping. I did a simple trigger just to see if I could get the music player1 types 311 as msg play music "311music.midi" but it does nothing. It stops the normal ne/orc wahtever music though
06-13-2003, 12:49 AM#9
DEMANUFACTURE
only valid file type are mp3 and .wav
06-13-2003, 12:54 AM#10
Peppar
For your midi-file to play correctly you will have to use some kind
of method to load the right dsl-file. One method is the one I
explained above, by replacing the dsl-file used by the Lordaeron
ambient theme. Tell me if you find a less painful way of getting
the midi to sound right.

Greetings, Peppar.
06-13-2003, 02:18 AM#11
Tearsong
Could you post a link to where you got all the MIDIs? :gsmile: