Using Midi

I want a midi to be playing during my game. Board is the display class and the driver is simulation. when i run it, i get a nullpointer exception for i think getDocumentbase()
here is some of the code for board that uses audioclip.
public class Board extends Applet implements KeyListener, AudioClip
AudioClip ac = getAudioClip(getDocumentBase(), "battle.mid");
public Board( )
setSize( 900, 900 );
setVisible( true );
addKeyListener( this );
setBounds( 100, 100, 650, 600 );;
setVisible( true );
ac.loop();
// Play audio clip
public void play()
// Stop playing audio clip
public void stop()
// Play audio clip continuously
public void loop()
}

    public void init() {
        // Load audio clip
        AudioClip ac = getAudioClip(getDocumentBase(), "battle.mid");
        // Play audio clip continuously
        ac.loop();
    }

Similar Messages

  • Can you use midi sounds when recording videos on Photobooth?

    Can you use midi sounds when recording videos on Photobooth?
    Basically, i like to record videos of me singing and playing guitar or keyboard, but to get a good sound for the keyboard I'd like to be able to record the audio using MIDI sounds...
    Ive got Logic, I've got M-Audio Fast Track Pro, into which i have my mic, guitar, and keyboard midi plaugged into. I can use it to record the mic and guitar on photobooth as they are audio inputs, however i can't use the midi sounds on the keyboard :/ I have tried having logic open with the desired MIDI sound selected whilst recording but it doesnt work...
    Is there ANY way this is possible?
    HELP PLEASE!
    Thanks!

    I Have just the same problem, if I shout very near the microphone i can just hear something, did you manage to solve the problem?

  • Req any examples of high to use midi controller/keyboards with Labview TIA

    Req any examples of high to use midi controller/keyboards with Labview TIA

    [email protected];
    Check the following:
    Communicating with a Windows MIDI Device in LabVIEW
    Regards;
    Enrique
    www.vartortech.com

  • Using MIDI controller - Delay (Laten

    Im using an M-Audio Radeum6 key controller connected to the computer via USB. The software for the keyboard is installed and working properly. There is a serious delay in sound being generated by my audio software from the midi controller. I realize that MIDI controllers do not generate sound, but notes - and the audio software generates the sound. How can I eliminate the latency? there should be none if everything is working properly. I have an Audigy 2 LS and believe it should be capable of playing the midi controller immediately as the controllers manual says it will. What am I doing wrong? Is there some setting, driver, connection, etc. which is not setup properly?

    noiziman,
    The ASIO drivers deals with digital audio signals between the software and the card, and it isn?t related with MIDI signals.
    Anyway, it isn't clear from the original question if the delay comes from the MIDI device itself or from the digital audio processing, since for the later he should be using a software synth. If he's using the hardware sampler (i.e. Emu0k processor in internal SB Li've/SB Audigy with SoundFonts), the problem shouldnt have to do with ASIO.
    To chek out this, i?d record in a MIDI track the signals received from the MIDI device (with the proper timming it should have, no matter the current latency of the resulting sound), and then i'd inspect the track (or it'ss event list view) looking for the singnals recorded from the controller. If the signals where received on time (that is, the timestamp matches the timestamp of an associated music event), then the latency comes from the synth. With a software synth, the ASIO settings would help with the latency (or a faster computer :-).
    But if the timestamp doesn?t fit where theyre supposed to fit, then the delay comes from the MIDI cables or setup. If so, try:
    ) To increase the "ticks per quarter note" in the MIDI setup for the song (or decrease this, if the problem comes from overloading the MIDI network with signals)
    2) Rewire the MIDI cables, i.e., avoiding chaining this controller trough other devices nor using MIDI THRU. At least i?d try pluging the controller right into the MIDI IN from the soundcard to test the latency.
    3) I don't know that controller, but if it's a synchronized one, try turning off sync (or using another device for sync).
    Hope this hel
    ps.

  • I have a Steinberg MI4 and a Roland Fantom X7, and am trying to use my Fantom in Logic to record audio. Need help setting it all up using MIDI cables. Please help !

    I have a Steinberg MI4 and a Roland Fantom X7, and am trying to use my Fantom in Logic to record audio. Need help setting it all up using MIDI cables. Please help !

    Encryption wouldn't matter except for Wifi.
    While 10.2 might help, there's not much you can do on the Internet these days with less than 10.4.11
    Tiger Requirements...
    To use Mac OS X 10.4 Tiger, your Macintosh needs:
        * A PowerPC G3, G4, or G5 processor
        * Built-in FireWire
        * At least 256 MB of RAM (I recommend 1GB minimum)
        * DVD drive (DVD-ROM), Combo (CD-RW/DVD-ROM) or SuperDrive (DVD-R) for installation
        * At least 3 GB of free disk space; 4 GB if you install the XCode 2 Developer Tools  (I recommend 20GB minimum)
    http://support.apple.com/kb/HT1514
    http://www.ebay.com/sch/i.html?_nkw=mac+os+x+tiger+retail+10.4
    See Tom's, (Texas Mac Man), great info on where/how to find/get Tiger...
    https://discussions.apple.com/message/15305521#15305521
    Or Ali Brown's great info on where/how to find/get Tiger...
    http://discussions.apple.com/thread.jspa?messageID=10381710#10381710
    As far as Memory, that's sort of easy, find your eMac here...
    http://eshop.macsales.com/MyOWC/Models.cfm?Family=emac&sType=Memory
    As far as Hard Drive, it's not easy to replace the Internal drive, I'd maybe suggest an external Firewire drive to boot from...
    http://eshop.macsales.com/item/Other%20World%20Computing/MAU4S7500G16/

  • Using mid-side audio in Premiere?

    Hello,
    Has anyone used mid-side audio in Premiere, and would you be able to tell me how to use it?  I have a mid-side setting on my stereo microphone and would like to make use of it but I have not been able to find information on how to use this audio source in Premiere.
    Many thanks.

    Upload a file.  I can test it out.
    http://www.depositfiles.com/en/

  • "zipper" noise when using MIDI controller

    When using MIDI faders to control guitar amp settings (gain, EQ, etc) I hear a very loud "zipper" noise when I make changes. This makes it very unlikely I can use it live. Has anyone else experienced this?

    By "flakey as heck," I mean that the stop button stops play, and brings it back to the beginning of the song, even if I only hit it once. In other words, I can't just stop playback where the song is at the moment I hit stop. When I hit fast forward or rewind, it doesn't always respond, and when it does, it often skips randomly, sometimes going one step in the grid, sometimes more than one, sometimes not at all. I think what is happening is that the transport controls are trying to control Logic but using messages designed for Reason. I say this only because, when I am using Logic, but not Reason in ReWire, the transport controls work exactly as they should.

  • Would this way work to use midi with an ipad?

    Before I go and buy a camera kit to do midi. Would it be possible if I take an ipad computer cord, use a female to female usb adapter, plug the cord on one end and plug a usb midi cord on the other end and have a fully working set up? Can midi/music signals be sent through the standard cord?

    Yes you can use a Midi on an iPad. Here is one way:
    http://createdigitalmusic.com/2011/02/how-to-use-midi-to-make-an-ipad-more-music ally-connected-productive-video-resources/
    Google for more.

  • Using MIDI files - plugins

    Hi, new to CS4 but seem to be doing quite well learning on my
    own. I have created a website and trying to put simple midi files
    on for music. It works for me but when others refresh their page
    only one of the pages plays music. When testing the website it says
    can't find plugin. The instructions say go to action and behavior
    tabs but when I go there I find nothing. I have read some
    instructions and not sure about all of ActiveX so if you can lend a
    hand it would be greatly appreciated.

    pblacken wrote:
    > Hi, new to CS4 but seem to be doing quite well learning
    on my own. I have
    > created a website and trying to put simple midi files on
    for music. It works
    > for me but when others refresh their page only one of
    the pages plays music.
    > When testing the website it says can't find plugin.
    This means that your system is set up to play midi files in a
    web page, but others aren't. You can't be sure that visitors will
    be able to play certain media types.
    > The instructions say go to
    > action and behavior tabs but when I go there I find
    nothing. I have read some
    > instructions and not sure about all of ActiveX so if you
    can lend a hand it
    > would be greatly appreciated.
    What instructions are you talking about that talk about going
    to the behaviors?
    I've never had a need to add a midi file to a page, but a
    quick Google search returned this page, perhaps it will help:
    http://www.boutell.com/newfaq/creating/midi.html
    Also, if there is not a very specific reason to be using midi
    files, then perhaps you'd want to generate MP3 files instead, as
    those tend to be easier to work with, and you can get a Flash
    player front end to be able to play/pause/stop and adjust volume.
    Maybe start out here:
    http://www.google.com/search?hl=en&q=flash+mp3+player
    And maybe take a look at some of the Dreamweaver extensions
    that seem to support MP3 files (shortened URL of adobe.com/exchange
    with a search in the DW exchange for mp3):
    http://tinyurl.com/dgkj8a
    And maybe even take a look at SoundManager2 a JavaScript (and
    Flash) solution that can play sounds
    http://www.schillmania.com/projects/soundmanager2/
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Using MIDI Touch on iPad with Logic Pro

    Hello,
    I try to set up MIDI Touch on iPad as a control surface. It operates through Wifi MIDI network.
    When monitoring under Logic, i can see  the differents MIDI messages going through the sequencer (Notes, CC messages) correctly (all values 0,1,2,...127) for every touch controllers.
    When I use MIDI learn (for example to set up a volume fader), it seems to be learn but it doesn't work properly. When I move the touch controller, the value of Logic parameter jump from 0 to 127...
    If I set up a touch control in MIDI Touch with CC7, it control perfectly the volume of a selected track in logic.
    It seems i am missing something... Could you help me?
    Thank you
    Pit

    Question - can I transfer the apps I bought for iPod Touch to iPad.
    If they're located in the same iTunes library and the computer is authorized, yes. If not, authorize the computer from the Store menu, connect the iPod touch, and choose Transfer Purchases from the dialog box which appears.
    (51106)

  • Does anyone use MIDI loops in Logic Pro to compose music?

    Seriously, if anyone out there uses the MIDI loops to compose music in Logic, how the heck do you do it? Especially if you are also using audio loops, it seems almost impossible to me. The chord transpositions that you get from the chord track are not even to the right pitch, and the transposition behavior is different according to whether you drag the loops into the arrange area before or after putting the changes in the Chord track. The signature track is no better, as it doesn't seem to affect audio loops. So how do you get the bass loops etc. to play in the keys you want them to without going through extraordinary contortions? I looked at one of the Logic Pro books, and it said to transpose by using the transpose function in the inspector, but that only lets you transpose by octaves! Do you really go in and edit the loops by hand to transpose each note?
    Any pointers on this would be greatly appreciated.

    kent swearingen wrote:
    I looked at one of the Logic Pro books, and it said to transpose by using the transpose function in the inspector, but that only lets you transpose by octaves!
    Put the mouse pointer on top of the transpose number, which is zero, hold down the left mouse button and drag up or down to transpose by steps. At the beginning of either the getting started or Logic manual there's an explanation of the different types of mouse/key behavior, if you're not used to using Logic it's a good idea to go over these.
    Also, Logic does not always use simplified Mac conventions (thank the stars for that), as a result you have a lot more variety of data input, it varies according to the task at hand.

  • How can I use my Dx7 as a MIDI controller for Logic Pro  9? I'm using MIDI/USB cable but Dx7 doesn't appear in the 'set-up' list, what am I doing wrong?

    I'm using Logic Pro 9 -  9.1.8
    MacBook Pro Retina OSX 10.9.3
    DX7 2 FD connected to my laptop with a MIDI/USB cable
    When I click the 'scan all models' search in the 'Control Surfaces Set Up' there is no Yamaha DX7 in the list so how can I make Logic 'see' the DX7?

    As Colin pointed out, you have to look first in the Audio MIDI Setup. If your MIDI Device doesn't show up there, then Logic cannot see it either (unless you are using Logic Remote on your iPad to play over Wi-Fi).
    I'm curious about the "MIDI/USB cable you mention. If the DX7 has a standard 5-pin DIN MIDI out jack, then you have to connect that to a MIDI Interface first that converts the MIDI signal to send it over the USB jack out. Please note that you would see the MIDI Interface in the Audio MIDI Setup  app and not the DX7 itself. Also, in Logic you would see the MIDI Interface in the Environment as a valid MIDI input device.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Error while trying to synchronize audio and MIDI in GarageBand (Not using MIDI!)

    I get this error message if I try to use any other programs while playing back two tracks in GarageBand. It seems to be related to the level of activity in the other programs (namely, Safari)--if it's trying to load a lot of images or I'm scrolling through a lot of content, the playback gets distorted and this error message pops up.
    This is audio recorded from Skype using Call Recorder. The microphone is a Blue Snowball. I do not have any MIDI devices.
    This didn't used to happen, so I'm not sure what changed. It seems strange that the 3.1 GHz processor and12 GB of RAM on my iMac can't handle playing back audio and browsing the web simulatenously, but maybe that is the case. The audio files are uncompressed, so perhaps that has something to do with it.
    I realize there are a lot of other threads about this, but most have to do with Logic and/or they're recording directly in GarageBand.

    Hello,
    open your Audio MIDI Setup utility and set the input to 44100
    https://discussions.apple.com/message/12710638#12710638

  • Can't use .mid file with Logic Pro 9

    I've been given a .mid file from someone I know but I'm not having any success trying to access the file in Logic.
    The file should just contain a piano piece he had written.
    When I first downloaded the file it automatically opened with QuickTime Player. I closed this then tried various ways of getting it into Logic. Firstly I went to File > Open, and chose the .mid file. This was the result:
    "Damaged project or not a Logic Pro project!
    "Search for fragments?
    "Damaged projects might create problems and crashes!"
    'Search' or 'Cancel'
    When I click 'Search' I'm told:
    "Read error!
    "This is not a Logic Pro project!
    "No tracks found"
    'Continue'
    So, is the file empty (no tracks found)?
    Or, because it was not created in Logic, it can't be opened in Logic. (I think he is using a PC, not confirmed yet - I also don't know what DAW he's using, yet)
    That's ridiculous though, I thought MIDI was a universal language?
    I also tried dragging the file straight into a Logic project, which tells me:
    "No tracks found"
    Can someone please give me a little hand!? Thank you
    Message was edited by: JofishSamuel

    JofishSamuel wrote:
    Okay? Sorry, I have no experience with .mid files as I've never exported or imported them or moved them before... or even highlighted one before!
    Two ideas, have your friend check and make sure the mid file plays on his/her system.
    and/or
    If the mid file checks out good on his/her system have them compress (ZIP) the file and resend as it could have become corrupted during transfer. It can happen.
    Your description of the file (zero length) sounds like it missed the last few bytes.
    pancenter-

  • Using MIDI cable with M-Audio FastTrack  Pro

    I have 2 keyboards. One has USB MIDI, so I just plug it directly in to my computer and Logic sees it. I also have a nicer keyboard (weighted keys), but this one doesn't have a USB out. It has a 1/4" jack and a 5 pin MIDI jack. I've tried plugging it into my FastTrack Pro using a MIDI cable, but it doesn't seem to work. What am I missing?
    Thanks

    Hi !
    Still no answer from M-Audio but it seems that they are not in cause.
    I read on several topics of Apple's Forums some similar problems with other audio devices and also with some USBhubs.
    I ran some little tests and for my case, using the other USB port of the MacBook seems to resolve the problem (but that's not a permanent solution for my point of view).
    Using a selft-powered USBhub works also, even on the port that makes it crash without hub.
    As I studied a little bit of electronics, it looks really like a problem of power supply through USB to me. It could be some kind of micro-cuts (or micro-undervoltage) that are sufficient to cut the audio stream and freeze a bit the system but not enough for MacOSX to switch significantly to the internal audio.
    But two questions still remain :
    Why one USB port of the MacBook and not the other one ?
    Why since 10.5.2 ?
    Steve, if you hear me ;o)
    'Hope they will react quickly !

  • Must use Step Input Keyboard prior to using midi controller? When I attempt to use my midi keyboard conteoller for step input, it won't work unless I input the first note in each track via the Step Input Keyboard. This doesn't seem right...

    When I try to use my midi controller keyboard for step input, it won't work unless I input the first note in each track via the Step Input Keyboard.. What am I doing wrong?
    Logic Studio 9.1.7, OS X 10.7.5

    Hi
    Playhead in the right place?
    CCT

Maybe you are looking for

  • How do you use an iTunes gift card for in-app purchases?

    My kids received iTunes gift cards for christmas and want to use the $$ towards in-app purchases in Clash of Clans. We've already redeemed the cards to their iTunes accounts. Now they want to use them within the app. How do they do this? If they try

  • How do I get ADSL2+ (Up to 20MB)

    I've been on BT Broadband forever and Broadband Anywhere for just about 18 months (contract ends this month, I think!).  Try as I may I cannot find a way through any BT.com web page that will allow me to upgrade from 8MB max to 20MB max, despite the

  • Is there a time limit for iCloud tabs from shut down devices?

    Hi, I have had some tabs left open on my (shut down) office iMac that I wanted to check during holidays by using iCloud tabs. It all went fine the first week, but some days later all tabs from that iMac had disappeared. Back in office once I opened S

  • Is there such a thing as a 3D flash file?

    I have heard this term thrown around but was sceptical if there was such a thing as a 3D flash file. So....is there? TIA Dean

  • Windows Embedded Compact 7 - M09 2014 Update Rollup with System.Exception

    Dear all, I applied all Updates on my BSP up to Windows Embedded Compact 7 - M09 2014 Update Rollup included. After a Clean Sysgen I got a System.Exception in my C# application when I try to access Font Property, this Exception is't raised before app