I'm having trouble using MIDI files in my applet...

Can somebody give me a quick example of how to play a midi file (a local file) in an applet?
Here's what I'm trying (was reading tutorials):
Sequence music;
try {
          music = MidiSystem.getSequence(new File("Futurama.mid"));
          // Create a sequencer for the sequence
Sequencer sequencer = MidiSystem.getSequencer();
sequencer.open();
sequencer.setSequence(music);
     } catch (IOException e) {
} catch (InvalidMidiDataException e) {
} catch (MidiUnavailableException e) {
But it's not working...
Any help would be appriciated.

Here's the Java Tutorial page with an applet that plays various sounds, including midi:
http://java.sun.com/docs/books/tutorial/sound/playing.html

Similar Messages

  • Having problem importing midi files.

    Hello everyone,
    I am having trouble importing midi files in GB. Every time I do all I get is a single insrument, and not the whole midi file as it was when I downloaded it. I tried Dent du midi and cant even get that to work. It looks like it is working, but never seperates the tracks. I would really like to be able to pick apart midi files. Anyone have any ideas. This is my first Apple, but I have been a PC Tech for 8 years now. (I Hate PCs, I love the Mac)

    Welcome to the forum. Yes, sometimes these issues occur. Since I am the biggest importer of MIDI files to GB3, I will see what I can do for you.
    First, when you wish to import a MIDI, drag the file onto an empty area (ie no tracks) of the GarageBand window. Hold until you see a + sign. Drop, and you should see the tracks appear.
    How did you obtain the MIDI file? From the Net? How did you save it? What were the steps?
    Do you have Quicktime Pro? Sometimes the way you save a MIDI file will make a difference. You have a choice between "save as movie" or "save as source", and I believe the latter works best.
    Has it worked for other MIDI files? Or is one or two giving you issues? Perhaps if you can post a link to the MIDI file, I can have a look at it.

  • Having trouble saving tiff files to server

    Hi all,
    I'm having trouble saving tiff files to our server (a mac pro running OSX 10.5.7 client not server). I get the error message 'could not save "filename" because write access was not granted. The disk in question is set to ignore permissions and the other 3 Macs on the network have no problems.
    Bizarrely this only seems to happen when saving as a Tiff file, I can save as JPEG without issue! The file will usually save after a few attempts, sometimes six or seven save as' are needed.
    This problem comes and goes, but at the moment its pretty bad.
    This is becomming very frustrating as Tiff is our prefered format and we work as a team so have to save to the server.
    Any ideas?

    Just to expand on Buko's correct ansswer, this is the boilerplate text I use in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://www.adobe.com/support/techdocs/322391.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

  • Im having trouble importing mov files into premiere pro on creative cloud, have installed quicktime

    Im having trouble importing mov files into premiere pro on creative cloud, original problem was no video and only audio when I imported mov file, so I have installed quicktime after reading that may solve the problem,but now an error message reads codec missing or unavailable, any help would be appreciated

    MOV is a wrapper... what is inside the wrapper?
    Codec & Format information, with 2 links inside to read
    -read both links in reply #1 http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30
    For PC http://mediainfo.sourceforge.net/en or http://www.headbands.com/gspot/

  • Having Trouble Downloading Certain Files

    I just got a Droid Razr the other day after accidentally dropping my Droid 2 off a third floor balcony. I'm enjoying the phone so far, but I'm having trouble downloading certain files. I use my phone to listen to podcasts. With my old phone I was able to download them from their respective websites by hold-clicking the download link, and clicking "Save Link." Now when I do that, I get the little "Starting Download" message, then, nothing. Is there some setting or something that isn't right?
    Full disclosure, when I was transferring the files from my old 8GB SD card to my new 16GB card, I accidentally put the files on the internal storage instead of the SD card, so after getting the files onto the right card, I deleted those files from internal storage. I was thinking perhaps I accidentally deleted some system file or something that would cause this problem, but I really have no idea.
    Thanks in advance for your help!

    Try Opera Mobile because a number of stock browsers have issues downloading from some sites.... 
    As for the possibilty od deleting system files you should not have access to any system files that would cause and device issues because you have to have Superuser rights and the system wont have this without voiding warrenty..

  • I am having trouble playing MFX files in Premiere Pro CC. The audio is out of synch. Is there a way to monitor the audio correctly?

    I am having trouble playing MFX files in Premiere Pro CC. The audio is out of synch. Is there a way to monitor the audio correctly?
    Many thanks

    Chances are the pinnacle is producing .avi files or MPEFG1/2 streams - iTunes may know how to decode the audio but not the video. Download Handbrake and try running the Pinnacle files through it and adding to iTunes - use Universal format unless you have a specific device in mind.
    Keep copies of the originals.
    Another option might be to try to install Perian.  Can't remember if the Apple MPEG2 plugin allows MPEG2 to be played in iTunes.
    AC

  • Having Trouble Opening .EPS File

    I am trying to open a .eps file in Illustrator CS3. As it is trying to open the progress bar for Parsing EPS format appears. Once the bar reaches the end, an error message shows up saying  operation cannot complete because of an unknown error. Can anyone please tell me why this is happening? Even tried opening it up in Photoshop and paring error message appeared. I am using a PC on windows Vista. Any help is greatly appreciated.

    Scott,
    I received the emailed file in zip. Tried opening it with illustrator and the same problem happened again. Any reason why it may still not be opening up? Do you recommend maybe reinstalling illustrator. This problem never happened before. Thanks
    Sebastien
    Date: Mon, 6 Jul 2009 13:51:18 -0600
    From: [email protected]
    To: [email protected]
    Subject: Having Trouble Opening .EPS File
    Where did the file come from?
    Was it emailed to you?
    Email servers often corrupt eps files. It's best to have the person zip the file before sending it.
    >

  • I am having trouble exporting .raw files to an external storage device.  Even though I export "original" they end up as jpeg files.  Any idea what I am doing wrong?

    I am having trouble exporting .raw files from my Mac Book Air to an external storage device.  Even though I am exporting as "original" they are being exported as jpegs.  Anyone have an idea what I am doing wrong?

    Using the "original" setting is the correct way to do it.  Select on of the photos and use the File ➙ Reveal in Finder ➙ Original menu option.  That will take you to the file inside the library via the Finder.  Confirm that what you see if the raw file.
    If it is then try the following:  make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    Click to view full size
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    OT

  • I am having trouble running .mov files on my ipad. What can I do?

    I am having trouble running .mov files on my ipad. What can I do?
    Thanks.

    go to the app store and search .mov   The pad plays a certain set of file types, but not all.  In the appstore there are several alternate players that will work.  Find one that does what you heed, and is priced right for you,and download it.
    ((WM Player HD lite is free, and look like the one you might want)
    I use xy player, and VLC, but I am not sure either one is still available.

  • Having Trouble Opening TIFF Files

    I'm having trouble opening TIFF files into Camera Raw. I have checked all my settings in Adobe Bridge and everything seems to be saying that TIFF files should open in Camera Raw when I click on then int and then into photoshop when finished editing in camera raw.
    I'm trying to open 32 bit HDR images saved as a TIFF file into Camera Raw, and there seems to be nothing I can do to get them there. I have tried everything I can think of. When I right click on it (cmd click I'm on a mac) the option to open in camera Raw isn't there. I have tried clicking and dragging the image into Photoshop to try and force it maybe to open into Camera Raw, and I have opened photoshop and tried opeing it up from mini Bridge. In mini bridge I have the option to open the image into Camera Raw when I click this nothing happens.
    I'm not sure what else to try I'm on CS6 and Camera Raw 7.0 .

    Alright I'll try that thanks!
    Date: Wed, 19 Mar 2014 23:34:31 -0700
    From: [email protected]
    To: [email protected]
    Subject: Having Trouble Opening TIFF Files
        Re: Having Trouble Opening TIFF Files
        created by R_Kelly in Adobe Camera Raw - View the full discussion
    It might be that you need to update camera raw to version 8.3 by going to Help>Updates from within photoshop or bridge.
    (i don't remember exactly in which version of acr that was added, but probably after version 7.0)
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6226366#6226366
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6226366#6226366
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6226366#6226366. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Adobe Camera Raw at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • I'm having trouble using Adobe Reader

    I'm having trouble using or uninstalling Adobe Reader, i get a message when the programme has been anitiated which says Adobe Reader has encountered a problem and needs to close, i went on to Adobe's website and it said try uninstalling Adobe Reader and then re-install it as this sometimes works, i tried un-installing it from the Add or Remove programme but that didn't work either as i got another message telling me that the patch package could not be verified and to make sure i have permission.

    Dear Mylenium.
    Sorry i don't quite understand your reply, What do you need to know?

  • I'm having trouble saving my file in adobe acrobat pro 9

    I'm having trouble saving my file in adobe acrobat pro 9.  When I attempt to save I get message saying,"Bad File Handle".  There are several pictures on this file I'm trying to save...dont know if that has anything to do with the problem, just thought it would be helpful information.  Would really appreciate any insight anyone has to offer.
    Thanks in advance

    I am having a similar problem with a simple pdf form.  I have made several changes to the pdf and when I go to save, I get the message that I can't save the file due to a "bad file handle."  I have opened, altered, saved, and closed the form several times before, just not now.  No one else was working on the form.  The file format is still a pdf and nothing has changed.

  • Hi. i'm having trouble viewing pdf files in safari

    i'm having trouble viewing pdf files in safari.

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Im having trouble using Emoji on some apps since i downloaded ios5... Anyone else experiencing this?

    Im having trouble using Emoji on some apps since i downloaded ios5... Anyone else experiencing this? Ive tried every thing deleting emoji and apps and re-instaling to no sucsess?? Any help would be great thanks!

    YES! I am having a lot of AppStore problems since iOS 6. My 2 main issues are:
    1. AppStore crashes constantly or will just sit & spin then does nothing at all.
    2. If I search for a specific App, making sure my spelling is correct, AppStore will NOT bring the app up. Instead, it will bring up unrelated apps.
    Podcasts app does the same thing, as well as jumbling up dates. Very impossible to find the correct episode.
    APPLE, please tell me you are reading this and that a fix is quickly under way!!

  • Im having trouble using bbciplayer on my ipad it says i need to switch to wifi but im already connected can any one help?

    im having trouble using bbciplayer on my ipad it says i need to switch to wifi but im already connected can any one help? I ve uninstalled/ reinstalled  switched it on and off what next?

    Did you try downloading the movie from iTunes on your iPad?  I know it takes longer but I'd try that. 
    Also try to reset all settings. 
    Settings > General > Reset. Reset all settings. 

Maybe you are looking for

  • ORA-03113: Error while upgrading the Database from 11.1.0.6 to 11.1.0.7

    Hi, I am trying to upgrade the database from 11.1.0.6 to 11.1.0.7 on OEL operating system. After applying the patch "6890831" when trying to start the database using "Startup Upgrade" command I am getting the below error. ORA-03113: end-of-file on co

  • Transitioning effect not working properly (cross dissolve)

    I had a clip and split it in two in FCP. I took the later half and imported to AE to make my effect. The plan was to import it back to FCP and add a cross dissolve between the two half-clips to make it look like the effect fades in. Makes sense, righ

  • Transformations on Datasource for Open Hub Services

    Dear all,      I have created a Generic Datasource on a transparent table. Following which  have created an Open hub service on this datasource. Now am unable to create the thansformations on this. I encountered the following error "Cannot connect Da

  • How to edit a published website

    I've looked around and can't figure out how to get into my published website in order to make changes or add photos. Probably an easy question for someone to answer for me. thanks a bunch

  • Automatically Exporting to XML when open a file

    Hello, I'm trying to set up my new machine to export the XML of a file when I open it by dragging the files onto the Ps icon (Mac). It used to automoatically happen on my old work machine, and it's super helpful. I'm pulling my hair out trying to fin