How do I load and play a Midi audio file?

John Zukowski

Using the Java Sound classes found in the javax.sound.midi package of course...

Sequencer sequencer = MidiSystem.getSequencer();
sequencer.open();
Sequence sequence = new URL(midifileurl);
sequencer.setSequence(sequence);
sequencer.start();
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact