Javax.sound.midi and external synths?

Since I don't have a USB-to-MIDI adapter (and I lost my MIDI cables long ago), I gotta just ask: if I had an external MIDI device connected to my computer, would javax.sound.midi.getMidiDeviceInfo() theoretically return a MidiDevice object describing it? Or is javax.sound.midi really just for the computer's own music synthesizer?
--Chris (invalidname)

see bug 4356787. MIDI for external devices is broken.
Add it to your bug parade votes. Let's get Sun to
address this.will do... not like they're going to fix my other favorite bug (4119391 - RMI in real-world networks)
Thanks.
--Chris

Similar Messages

  • Author       "javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream" after java update

    Not sure where to post this issue.
    I am noticing this error since I did the Mac update. The Mac update included the java update. Right now the java version is 1.6.0_31. My Mac OS X version is 10.7.3. I am seeing the problem for all the soundfont files that I am trying to load. The error i get is.
    javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream
         at javax.sound.midi.MidiSystem.getSoundbank(MidiSystem.java:565)
         at myPackage.MyMusicApp.main(MyMusicApp.java:14)
    Below is a small program I built that shows the code.
    package myPackage;
    import java.io.File;
    import javax.sound.midi.*;
    public class MyMusicApp {
        public static void main(String[] args) {
            try {
                Synthesizer synth = MidiSystem.getSynthesizer(); synth.open();
                File f =  new File("/Users/poorav/eclipseGIT/myApp/soundbanks/1247_KitDRY.sf2");
                Soundbank soundbank = MidiSystem.getSoundbank( f);
                synth.loadAllInstruments(soundbank);
            } catch (Exception e)
                e.printStackTrace();
    I am not sure what the previous build of java I was on, but i know that it was a 1.6 version. Any ideas of what could have caused this?
    thanks

    No satisfactory progress!
    I submitted a bug for this using the Apple bug reporter on 9th April (#11208868) and despite asking for an update, it has been completely ignored (even now). I'm not impressed.
    I then issued a (paid for) Developer Technical Support issue which was credited back to my account a few days later with no explanation. When I asked why, I eventually got: "At this time DTS does not provide code-level support for Java"!
    So, Apple are assuming to responsibility for this problem. I realise that Oracle is mostly responsible for Java but Apple took this crippled version (how much testing did they do?) and updated our customers' machines with it. This has effectively disabled a key feature of our product and has cost us damage to our company's reputation. Still Apple don't care and they rely on the fact that we are too small to sue them. You can see I'm not happy! I naively thought Apple would make some attempt to assist their developers.

  • Logic and external synths

    Hi! This is basically a pre-sales tech question.
    I'm looking to run Logic Studio on a new MacBook. I'm getting that out of the way since my profile says I'm currently a Windows user.
    I have a very nice bank of hardware synths. I don't want to moth-ball them with the purchase of a new system, since they sound better than Logic's internal software synth sounds (which I previewed at my local music store).
    So my question is: Is Logic user-friendly when it comes to accessing sounds on external synthesizers? In the early 90's I used a setup with point-and-click access to external sythesizers. I don't remember which program, but it may have been Cubase. There was a lovely drop-down menu where I could select the Oboe from my Proteus/2, or a drum kit from my Korg 05/RW.
    There must be lots of Logic Studio users out there using external hardware synths, right? Is this an easy thing to do?
    Thanks in advance.

    I highly doubt you will ever go to total 'software' synths and sounds dude! I'm still finding 'golden' sounds from my early 90's gear! Sure, we all love the ease and convenience of software but as others here have stated... once you 'enable' Logic to send MIDI data it becomes part of your normal routine. Sometimes even ONE sound from an external synth can make your project, right? Go for it man. The wealth of info Apple provides ' right in the box' (manuals?... oh ya dude!) makes learning easy! ~King

  • Why won't MainStage send program change MIDI to external synths

    One of the main reasons i moved to mainstage was the ability to seanlessly use both the mainstage sounds plus the internal sounds in my hardware synths . Since i upreaded to mainstage 3 i cant send program change MIDI to external synths ... I really need to have this resolved . it is critical

    Seems to be working for me.  I can send in a program change, and the external instrument channel strip will send out the correct program change.
    I did notice that new patches I added have their own program change number, so I had to set it to what I wanted (for the mainstage patch itself, under attributes).
    So, starting from the begining, I :
    - added an External Instrument channel to my existing MS patch
    - I set the output of that new channel to the correct midi output device
    - I selected the ext. instr. channel and then went to the inspector->MIDI Output tab and checked the box "Send Program Change" and I selected a prog. change number
    I monitored this output using MIDI Monitor and it all looked correct.
    I hope this helps...

  • Weird timing issues when playing back a recorded sound file and with synths

    Hello there,
    I'm having a couple of strange issues with playing back files that I have recorded using MIDI data which is then used to play an external synth which then gets recorded to an audio track which at the time is perfectly synced to a click track.
    The problem is (and I really dont get why this is happening) when it comes to playing back the recorded audio file that sometimes it is either behind or ahead of the beat.
    This makes absolutely no sense because sometimes it IS in time with the beat and other times when I play through my piece it is obviously out! I haven't moved the audio file in the arrange window and it is a permanent .aiff file that is stored on my hard-drive...what on Earth is going on?
    On a side note, the same problem happens with any of Logic's synths when I use an LFO that is supposed to be synced to the beat. Sometimes when I play back the MIDI data it is perfectly synced and in time and other times it is horribly out. It really is just pot luck!
    Anyone got any ideas?

    Thank you supermacmom!
    I have the LifeProof case for the iPhone5, and I remember the instructions saying that any protective screen cover should be removed before enclosing the phone into the case, but I left mine on with no ill effects.
    But I should have taken off the back protective film, which was covering the video mic!

  • No sound internal and external

    I have a macbook right here running 10.4.11 and no sound comes out of it. not out of the internal not out of the external with headphones or speakers. The optical redlight jack isn't on, its all the way up on preferences. iTunes nothing, iMovie nothing, nothing out of the internet. The buttons work fine, it shows that its getting louder/quieter/muted but you don't hear the lil click/beep thing. I don't have warrenty anymore and don't want to get ripped off from apple. (its actually my friends laptop and don't want her to spend money if i can fix it). I'm thinking its a hardware thing, its all updated. I don't know if there is a sound driver for 10.4.11 (I mainly use PC's but Mac Pro at my friends recording studio) I highly doubt its on the software side, but it if is hardware there isn't much I can do to fix it if the mobo is fried somewhere, but if the mobo is fried the whole thing shouldn't work... unless its just the sound and sound only. correct me if my logic is off somewhere. The internal speakers don't work and external doesn't either so I think its the mobo chip that controls the sound... cuz if its software, it shouldn't visually look like its working. Anyone? Help?

    It is entirely possible that the OS would indicate normal sound operation but still be responsible for a silent computer. It is also possible that a preference setting held in non-volatile memory is the cause.
    For the first, you can try booting from the original disks that came with the MB & seeing if sound works. For the second, try resetting PRAM. Also try just launching Garage Band (if installed), which resets certain sound parameters that might prevent normal sound operation. (You don't have to do anything in Garage Band other than launch & then quit it.)
    It is also possible (& not entirely uncommon) to have a hardware problem that just affects a subsystem, especially one associated with a port that can be damaged by an external electrical signal. One way to check for this is to obtain an external sound converter like the Griffin Technology iMic & see if sounds output via a USB port work.
    It is normal not to see any light in the jack -- the MB senses the presence of a plug inserted into it, only turning on the optical output if the plug is of the optical type. If you have an optical cable with a mini-toslink plug available, you can try plugging it in & seeing if you see light at its other end.

  • Capturing the output of a javax.sound.midi.Synthesizer

    Hallo,
    since i can�t convert a MIDI-Sequence to a WAV-File directly, i want to play back the Sequence and capture the sound somewhere "between" the sound-generating synthesizer and the speakers. As far as i understand, i have to obtain a TargetDataLine from an output mixer, so i can read the sound data, since ports aren�t implemented yet. My problem is: How can i obtain such a TargetDataLine?
    With something like
    info = new DataLine.Info(TargetDataLine.class, format);
    line = (TargetDataLine)AudioSystem.getLine(info);
    i get a line to capture microphone input.
    i managed to get a mixer that is opened and started, when the synthesizer is opened, but that mixer only provides com.sun.media.sound.MixerSourceLines.
    Any help will be greatly appreciated.

    Not a reply, I'm afraid.
    I want to combine Midi output with audio output, which is exactly the same question as this thread. The whole thrust of Java sound is to 'unify' Midi and Audio, and yet I've fallen at the first hurdle.
    This thread was opened in Nov last year, yet is still unanswered. Is this right?

  • Javax.sound.midi: Processing MIDI events

    Hello,
    I've been wondering if there is any way to process MIDI events without using
    a Sequencer, for example to take information of the file without play-back?
    greets

    Cool... Thanks! That was really simple to fix... wish
    I would have known that before...You're welcome. You may need to find a good MIDI reference via google (or scroogle if you're a commie) to supplement the info in Sun's documentation.

  • Using an external synth like the KORG SD50 with GB3

    (for the veterans of synth sequencing etc )
    been researching getting a keyboard ( not just a midi controller which is what i have now ) but one that has modern sounds and i can play (also ) without having the computer on. If i have GB recording since there is no midi out there is no syncing and so if i wish to record some of the sounds of the external synth it will need to be on a real track ( audio in ) as if it were a voice a guitar etc..
    The KORG S50 which has wonderfully expressive programs/combos that arpegiate some with drum beats bass. In other words when the key is struck the drum beat starts or a bass might play and a musical phrase is played with a back up beat/rhythmic sound. So if i run the count down of GB3 i assume that i can play the external device in time with GB's sequencer or can I? If its not midi then will it sync to the proper time if i record it onto a real track? In other words will GB3 allow a recording of an external instrument that has its own timing? I hope im clear here.

    im afraid HT is right again
    midi yes will work but GB has no midi out
    you cant have two time clocks in GB
    and you cant have midi sync
    and you cant have midi out
    i have found that audio loops thrown in to GB pieces if not too long seem to work fine
    IM bummed here because i want to use a korg X50 which has arpeggiated wonderful voices/programs/combis that have their own groove tempo. This cannot work with GB unless you audio in the sequence but it wont sync up in GB.
    im waiting to here if LExpress will do this & if so im gonna have to hit the learning curve my wallet and change my attitude!

  • Need help with Java MIDI and VST info

    I am currently a college student for programming and I know programming very well, but for this current task, I am completely stuck. This is not a school project or work, just a personal project I'm working on at the moment to learn more about Java.
    What I am trying to create is a VST (Virtual Studio Synthesizer) using Java for use in music programs such as FL Studio, Sonar, Ableton, and so on. I did alot of Googling and found the following program:
    [http://jvaptools.sourceforge.net/index.html]
    I got it working, but it's not quite what I am looking for (it's more like an on-site editor that you enter code into and then run it). I want to create a VST from scratch and learn what each thing means in the program. I've done some research on MIDI input and output and found the following in the Java documentation:
    [http://java.sun.com/javase/6/docs/api/javax/sound/midi/MidiDevice.html]
    I figured I'm on track of what I'm looking for, but the problem is that the Java documentation simply sucks. It has no examples of code, how the functions work, and how I'm suppose to use them.
    First off, I want to start with the extreme bare basics. Is it even possible to do a VST in JUST Java? I've seen and used examples of obtaining data from a MIDI file and playing it, but that's not what I'm trying to do. Second, how would I take MIDI data from a music program running the VST and enter the data into a text box? Once I'm able to do that, I should be able to work with the data to produce audio output.
    My program I am attempting to make is a guitar synthesizer that I can run in music programs as a VST. If anyone around here knows anything about MIDI and VST plugins, please, post some example code and help point me in the right direction to creating something. I'm not looking to use other people's programs or code, I want to make something myself from scratch but I don't know where to start!

    Programming guide
    [http://java.sun.com/j2se/1.5.0/docs/guide/sound/programmer_guide/contents.html]
    Examples...
    [http://www.jsresources.org/examples/]

  • Where's javax.sound

    Hi
    i've downloaded j2se 1.4.1 but when i try to import javax.sound.* it says it can't find it. Do i need to import anything else eg java.lang or what? I'm pretty sure its not an optional package.
    Please help me

    You aren't easily distracted from a set opinion, huh?
    You got the same answer from me in that thread:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=32
    334
    You'd have to return to your thread to notice,
    though,
    instead of posting a new one...
    I really appreciate your help docjekill, but even when i specify
    javax.sound.midi
    javax.sound.midi.spi
    javax.sound.sampled
    javax.sound.sampled.spi
    all of these i still get the same error.
    I've looked in scr.zip and found other packages, eg javax.swing etc, but no sound packages. Is the download incomplete or did it just stuff up?

  • Where is javax.sound?

    Compiler tells me it doesn't exist, even when setting classpath as follows:
    C:\JDK\bin\javac -classpath C:\JDK\JRC\lib\rt.jar soundApp.java ...
    I have version 1.4.1.

    How old is this application you are trying to use, or how old is the code if you are getting it from another source?
    1.3 through 1.4.1 use javax.sound.midi, javax.sound.midi.spi, javax.sound.sampled, and javax.sound.sampled.spi.
    They dont try to import javax.sound in and of themselves. This may be an old program written back when javax.sound stuff wasnt included in the API and was a part of the Java Media Framework.
    Of course, I could be totally wrong here (as I havent done anything with sound stuff in Java in quite a while.)
    Just a thought.

  • Using the firebox/ to record an external synth via audio outs and a USB Mic

    I have the following set up:
    firebox Firewired to the QuaD.
    ALL audio in and out is PRESONUS FIREBOX
    in GB prefs/sound/audio midi utility
    will i be able to record vocals with the USB samson
    and add
    an external synth coming in to channels 1/2 in the front of the Firebox 1/2 channels
    and ofcourse use GB as the recording studio and use this all together.
    the outs in the back of the Firebox go to a minidisc whose audio outs go to monitors so that i can record what i do in case genius strikes me fiddling around
    as we all do.
    so 1 Firebox, Firewire, Samson Mic ( USB ) GB 08 , minidisc, monitors
    with all drivers to PResonus together.
    i notice in audio midi i needed to change to device not mac to rid static
    Is this a plausible set up?
    can this work:
    The synth is taking up 1 real track ( i set monitor on and mono presonus track )
    the samson mic is taking up another real track
    can i hear record the synth and sing at the same time with them on both tracks
    Chris said use aggregate in the midi audio
    i do not understand how to do that and what that means?
    would someone be kind enough to explain this?
    please take it a step at a time.
    i essentially want everything working at the same time
    external synths/usb mics/Gband/external recording/monitors
    using the presonus firebox
    thanks for your time
    bless u all
    someone mentioned using aggregate in the audio midi utility.

    Funny you should say that. It used to work fine, then suddenly last night it stopped working in the line-in jack. It's crazy, I'm not sure what the deal is, still trying to figure out what happened.
    Cheers,
    Jose

  • Error while trying to synchronize audio and MIDI.  Sample rate 42804 recognized.  Check conflict between Garageband and external device.

    Sometimes, while playing back my software instrument songs, I get an intermittent pop-up error message, saying "Error while trying to synchronize audio and MIDI.  Sample rate 42804 recognized.  Check conflict between Garageband and external device."
    (Sometimes the five digit number is different, but remains a five-digit number beginning with "4".)
    Simultaneously, the song stops until I press the "Okay" button in the pop-up window.
    When I continue to play the song, the sound is jerky and clipped, and the playhead doesn't keep up with the song, and then suddenly jumps to the part of the song currently being played.
    There's also a sound of static.
    The issue seems to occur whether or not I have my MIDI controller turned on and plugged into my desktop Imac.
    Tony

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

  • External Synth Midi Sync

    Hi im having trouble doing this. i have followed the very helpful sflogicninja's tutorials: http://www.youtube.com/watch?v=iS_YS-waARU&feature=channel. dispite his help i am still yet to successfully set up my microkorg so midi is synced correctly (am i right in assuming i should be able to change the korgs programs ect from within logic?) i have a fast track pro sound card and both midi i/o are plugged in via 5 pin midi cables. and the microkorg works fine in controlling other software synth's within logic...any help and advice on what i may be doing wrong here would be greatly appriciated! thanks lolly

    do you actually mean "sync"? that would imply that you are trying to make 2 or more MIDI sequencers to play together. Are you just trying to have the ability to send MIDI messages to the korg from logic? if so, and you are cabled correctly, you need to set the MIDI channels to match in logic and the korg. Look to see what midi channel and port the logic MIDI channel strip you have selected is set to. Make sure that the Korg is on the right port and is assigned to the correct channel. Then if you look in the inspector you should see a program change check box.

Maybe you are looking for

  • How to define join in physical layer between cube and relational table

    Hi I have a aggregated data in essbase cube. I want to supplement the information in the cube with data from relational source. I read article http://community.altiusconsulting.com/blogs/altiustechblog/archive/2008/10/24/are-essbase-and-oracle-bi-ent

  • Help Apache not working since 10.4.10 upgrade

    Hello I have web sharing turned on and I run a small web page on my mac to host photos and such. It was working great until I upgraded to 10.4.10. Now nothing will connect to my web server at all. I have a power PC mac. When I turn on web sharing on

  • SRM SUS PO response:HTTP response contains status code 401

    Hi, While sending the PO response from SUS to mm am getting the error as below in SUS : SAP:Stack>HTTP response contains status code 401 with the description Unauthorized Authorization error while sending by HTTP (error code: 401, error text: Unautho

  • Apple id does not change

    dear community, I am unable to change my AppleId. If I type in in the prompt and would save it it does not change it. The new ID is not in use everytime. Thanks for your support

  • Non responsive track pad

    3 year old mac book. Just repaired with new hard drive and battery. All was well until this morning. Trac pad non responsive. Moves a little bit, doesn't really track. Any ideas?