How to play *.mid files

Hi guys,
I have a *.mid file "test.mid" and i want to play it on the wtk2.
1-How can i play *.mid file?
2-How can i make this mid file loops,and how can i stop it?
3-How can i play another *.mid file(very small one 1-2 secondes) will the big one is being played (and looped)?
I would realy apreciate if someone help me!
Thanks.

You can play midi files using the MMAPI. Here is a small example for how to play a midi file:
import javax.microedition.media.*;
import java.io.*;
try{
    Player player;
    InputStream is = this.getClass().getResourceAsStream("/test.mid");
    player = Manager.createPlayer(is, "audio/midi");
    player.realize();
    player.start();
}catch(Exception e) {
    System.out.println("Error: " + e.toString());
}You can find a great tutorial from here:
http://www.awprofessional.com/articles/article.asp?p=375708&seqNum=2&rl=1

Similar Messages

  • How to play MIDI files on mac os 10.7?

    How to play MIDI files on mac os 10.7?

    As the owner of the G2M3 codec, Citrix (makers of the gotomeeting products) will be in a better position to help you resolve your problem than anybody here.

  • How to play midi files

    i recently got some midi files but when i go to play them in logic they wont play it has a signal but no sound comes out just wondering how do i get it to play and also can i load these files into any synths and how would i go about doing that

    hhhmm..... it sounds to me you need to get a book and read about how midi files work, what equipment it takes and understand how sound modules work and etc..... you have alot of homework to do.....I could explain this but I don't think we have enough room in this forum for that.... look for info on sequencing, sound modules, virtual instruments on logic pro for a starter. good luck....

  • How to play MIDI files on Firefox for Android?

    When I click on a link in a web page at points to a MIDI file (that has a .mid file extension), I receive a error stating that it cannot play the audio file. In the desktop version of Firefox, there typically is a way to associate external applications to execute "something reasonable" with the file. This presumably means that Firefox first downloads the file, and then executes the external command on the temporary downloaded file to view or play the file. Does it work similarly in Firefox for Android?

    Hi bgoodr,
    It is a similar process, but different functions on the version of Firefox. For further investigation do you happen to have an example where this type of file can be downloaded and what app that youare using to open the .midi file?

  • How to get QuickTime Plugin to play .mid files?

    I have quicktime Plugin installed. It works for playing video files but I can't get it to play .mid files in browser. Firefox asks me to download the file first, even though through options -> application types, I have set it to use the QuickTime plugin.
    I have firefox 22 and quicktime 7.7.4

    Also through MIME settings in QuickTime I have set QuickTime to be associated with .mid and .midi files.

  • I can't play midi files.

    Hi,
    I have the latest version of iTunes and Quicktime but I can't play midi files with Quicktime anymore. I have to remove iTunes to be able to play them. Does anyone know how to fix this so I can have iTunes and play midis too? They used to play on my computer so I don't know what's going on.
    Thanks!

    Do you have QuickTimeMusic.qtx and QuickTimeMusicalInstruments.qtx (and their resource directory) in your Program Files\QuickTime\QTSystem directory?
    And you may need to remove some codec packs include QuickTime support.
    And why you have to use QuickTime synthesizer for MIDI files? It uses obsolete technology and a small soundfont (from about 1997) and without proper support for Yamaha XG MIDI files?

  • Looking for some info on how to play music files on IPAD2

    Hi and thanks for sharing.  Trying to figure out how to play sound files such as wavs or mp3s on my ipad2 while I browse the internet or use my computer.  I was trying to see if the music feature will play my songs or if I can import downloaded files from the net to itunes and if that will play in the background.  I have an audio program that can send sound files to email and was trying to figure out how, similarly, to get this play in the background while I do things too.  That and sound files downloaded from the internet.   Do these go to iCloud when you download them?  Can I import sounds into itunes with my iPad someway.  (It's the only computer or device I own).   Basically looking for a pathway to get music from my audio program that's sent to email, and clips I've DLed off sites on the internet, to play while I use the pad or browse the net.  Thanks for your intel on the mission.   Cheers!

    The only way to get content into the Music app is via iTunes store downloads or syncing with itunes on a computer. You will need to find a third party media player such as VLC (whick integrates with DropBox and GoogleDrive, if that appeals to you).

  • Itunes 10.7 not playing MIDI files

    ITunes 10.7 is not playing midi files (.mid).  I often play MIDI files and convert them to MP3 files using iTunes. Has Apple stopped supporting playing and converting MIDI files in iTunes? 
    When I try to open a MIDI file in Quicktime 10.2, it also does not play MIDI files. I do get a message that Quicktime 7 is required to play midi files.
    I sure hope this is changed in future updates of  iTiunes and Quicktime.
    Tom R.

    I don't think this is the complete picture...  I have tried importing midi files into iTunes 10.7 on three different computers, and it worked on one, not the other two.  The differentiating factor? Seems to be the operating system:  it worked on the one with Snow Leopard but not on the ones with Mountain Lion.  I don't have a computer with Lion to test on, unfortunately.  This might be an actual bug, or temporary omission, from the build for Mountain Lion.  Worth filing a bug report, anyway - since it's free and the more people report it the higher priority we might hope it gets?  http://bugreport.apple.com/

  • How to play video files that are in Drop box on iPod?

    How to play video files that are in Drop box on iPod?

    I am going to have to write a technote about this, because it comes up a lot.
    Flash Player itself is designed to play SWF content as a browser plugin or as an ActiveX control (when it's IE Windows).
    There is a standalone Flash Player, but that's something Adobe  provides directly as a feature of Flash CS4 Professional. It gets installed with Flash. We have made some standalone players available on http://www.adobe.com/support/flashplayer/downloads.html, but not all (and I don't know why.  Looking into it)
    There are numerous 3rd party standalone SWF players out there though.  Some designed to just play video, others that play full SWF. I suggest a google search of 'play SWF standalone' and read the results.
    On the Mac, consumers who want to play SWF content off their desktop can use the Adobe Media Player. You can import a local SWF (and FLV and other video) and play it in AMP.  Get it here:
    http://www.adobe.com/products/mediaplayer/
    That's Mac only, doesn't work on Windows.

  • QuickTime X opens 7 to play MIDI files

    I've been wondering this for a while, but only recently thought to ask as it isn't that much of a concern. I installed QuickTime 7 on my Mountain Lion installation per the official instructions (I had QuickTime Pro on my old Mac and needed to retain that functionality), and since then when attempting to play a MIDI file QuickTime X closes and opens the file in QuickTime 7. Is this normal, expected behavior?

    Yep.
    QuickTime X can't play MIDI files (and many other older formats) so it passes them off to QuickTime Player 7.

  • How to play *.avi files in solaris10 sparc

    hi frnds
    can some body tell me how to play avi files in solaris
    or is thr any binary packages ( but plese dont tell me abt source files i am fed up of compiling :) & ) if any binary packages r avilable
    please tell me or how to play in solaris 10 sparc version
    thanx & REGARDS
    chakri

    http://perian.org for your AVI files and http://flip4mac.com to play most WMP files via QuickTime Player.

  • What plugin do I need to play midi files in Safari 7.0

    I just upgraded to Maverick and Safari 7.0, and now when I click on midi file links at a website that I have long used, I get an error message saying I am missing a required plugin.  What plugin is necessary to play midi files with Safari?

    http://get.adobe.com/flashplayer/?promoid=BUIGP

  • How to play .mod files on iPad 2

    How to play .mod files on iPad 2

    There appear to be a number of apps that support .mod files e.g. ModPlayer, Interocitor. Try searching for '.mod file' or 'mod player' and see what's available in your country's store.

  • HT3775 how to play .ram files on iMac ?

    how to play .ram files on iMac ?

    Greetings,
    If I had any Real Audio files I could tell you.
    Try a few different players:
    VLC says they have "partial" support: http://www.videolan.org/
    MPlayer: http://mplayerosx.sourceforge.net/
    Perian: http://perian.en.softonic.com/mac
    Hope one of those work for you.

  • How to play Swf files on the iPad??

    Just as the title sated, how to play sef files on the iPad, since the iPad lack of flash support, and I don't find any program to handle with the swf files to playing on my iPad

    Depending on what sites you are trying to access, you might find that some of them (probably more so if they are news sites) have their own apps in the App Store which might let you get some of the content that you want (and there is the built-in YouTube app). Also there are browsers such as Skyfire which 'work' on some sites - but judging by the reviews not all sites. If you want to play flash games then you are out of luck if you want to play on-line (unless something like the iSwiffter app work with it), but again some of them have app versions in the store.

Maybe you are looking for

  • Currency Conversion for historical Amount

    Hello Experts, Can some one help me to find a solution for my reporting requirement. As part of GL reporting, I have a report which shows accumulated balance for given fiscal year/period. If the currency is in USD,I have no issues. When the currency

  • HOW CAN I RETURN A LOST MINI IPAD

    HI I FOUND A MINI TABLET I WANNA RETUR IT TO THE OWNWER OR HOW CAN I GET IN CONTAC  WITH THE OWNER

  • Problem viewing text in long text field

    Hi, I have a long text in the screen and it takes 65 characters per line in the long text field. iam able to populate data in the long text field but the text in the long text field is truncating in between the words as shown below. SAP Business One

  • Error opening Illustrator CC Tryout: Missing Required Plug-ins PDF Format.aip

    Hi.  Which plugin is needed?  Thank you so much. P.S. I Also received a warning the following disk images couldn't be opened:  Illustrator_16_LS16.drr illegal seek.

  • Universe design question

    Hello All, I have 3 tables in my schema....where Vk table         LPC vparty table               LPC Vparty S table PV_ id                        LPC V_id                              LPC V_id                     S_id                            PP_ID