☰ Menu

Step 4. Transferring your first MIDI file

If you've reached this step then I'm assuming you have successfully displayed your .wml file on your Nokia 3510. If not, you will need to return to the previous sections and return here once you've got things working.

You'll be pleased to know that the difficult bit is behind us now, this bit should be fairly straightforward. To deliver a MIDI file, all we have to do is modify the .wml file to hyperlink to the MIDI file.

Use the link below to download "Chopsticks.mid" to your PC (you may need to right-click and select "Save Target As" to download this, otherwise your computer may just start playing the file). Once you have downloaded this file, place it in the same location as your .wml file (if you are using an ISP to host the .wml file, upload the file so that it is available on your website from the same place as the .wml file).

 
Link: Chopsticks.mid. Ok, it's not the greatest MIDI file ever but it's a nice place to start from!
 

Now we need to modify the .wml file to link to the MIDI file. Replace the contents of the file with the following:

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
  <card title="Ringtone">
    <p><a href="Chopsticks.mid">Chopsticks</a></p>
  </card>
</wml>
This is fairly similar to before, except that we've changed the text to a hyperlink.

Make sure both the new .wml file and the MIDI file are available at the location you are hosting your WAP site from, and then open the .wml file in your Nokia 3510's browser.

When the page displays, you should see the word "Chopsticks" underlined, as is usual with hyperlinks. Press the "Options" button when this is highlighted and select "Open Link" from the menu. After a few seconds, the phone should display "Ring tone received" -- and you have now managed to download your first MIDI ringtone. Select to save the tone, give it a name, and then disconnect from the WAP browser. (If you do this quickly enough you should be able to do the whole thing in under a minute -- great for those inclusive WAP minutes if you have them!).

Now you're ready to go to the Tones menu and try playing the file.

So that's someone else's MIDI file transferred to your phone, now it's time to try composing your own...

< Back to the previous part  |  On to the next part >

This article is copyright © Adam Dawes, 2002.
It may not be copied or redistributed without my express written permission.