Really Simple Midi Problem

... from a Java newbie, fluent in other languages.

I am trying to create a simple program that will open a midi out port on my computer and send a note to it. My computer is running Windows and i run the following code in order to find out the available midi ports on my machine:

import java.util.*;

import javax.sound.midi.*;

class MidiTest

{

publicstaticvoid main(String[] args){

System.out.println("\n");

MidiDevice.Info[] devices = MidiSystem.getMidiDeviceInfo();

for (MidiDevice.Info deviceInfo : devices){

System.out.println("Device Name : " + deviceInfo.getName());

System.out.println("Device Description : " + deviceInfo.getDescription() +"\n");

}

}

}

The code reveals the following information:

Device Name : LoopBe Internal MIDI

Device Description : No details available

Device Name : Microsoft MIDI Mapper

Device Description : Windows MIDI_MAPPER

Device Name : Microsoft GS Wavetable Synth

Device Description : Internal software synthesizer

Device Name : LoopBe Internal MIDI

Device Description : External MIDI Port

Device Name : Real Time Sequencer

Device Description : Software sequencer

Device Name : Java Sound Synthesizer

Device Description : Software wavetable synthesizer and receiver

... so , all i want to do is select any of these ports and send a C to it for a given time duration.

Any help is welcome.

Best Regards

[2016 byte] By [panoskatera] at [2007-11-26 18:47:33]
# 1
Have you tried http://www.jfugue.org/index.jsp ?
andreyvka at 2007-7-9 6:21:30 > top of Java-index,Security,Cryptography...