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

