You Are Here:

Community: Developer Discussion Boards

#1 Old problem in playing midi file - 2004-02-03, 05:12

Join Date: Feb 2004
Posts: 2
helcyon1
Offline
Registered User
Hello,

I'm developing a small game, and I need to play a midi file on MIDP 1.0. How can I code for playing a midi file? I looked at the Nokia UI API, but I have no idea.

Please help me.
Reply With Quote

#2 Old 2004-02-03, 09:19

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
The Nokia UI has no way of playing midi directly.
You can convert a monophonic midi file (or one channel of a poliphonic one), into the a format you can play using the Audio Converter that comes with the Nokia Development Suite.

To play midi you need to have a phone that support MMAPI (like the 3300). Then you can use it (that's the javax.microedition.media.* classes) to play midi files.

shmoove
Reply With Quote

#3 Old Thanks and one more - 2004-02-03, 23:35

Join Date: Feb 2004
Posts: 2
helcyon1
Offline
Registered User
Thanks shmoove

Well, then which format is available for those MIDP 1.0 phones?
Is the format differnt at each machine?
Do you show me a brief code for that?

Thanks, again
Reply With Quote

#4 Old 2004-02-04, 10:14

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
It's the same format on all of them. You need to download the Nokia Developer's Suite. It has a tool called the Audio Converter that can load a midi file, and convert one of it's channels to this format (I think they call it ott, or ota). You can export it as a String of as a byte array.

As far as code, searching the forum is all you need to do for that.

shmoove
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ