| Author |
simple play midi file example
|
Scott Pike
Greenhorn
Joined: Jan 17, 2007
Posts: 12
|
|
|
I am doing Junit test for my class programs. When they completely pass I want them to play a little midi song once. What is a simple code I can enter in the Junit test that will allow me to play the file that is in my documents? Please give me an example and tell me what I will need.
|
 |
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
|
|
|
Google for Java MIDI and see what shows up. You're probably going to need Synthesizer and Sequencer objects. I enjoyed MIDI programming in Pascal but had little joy in Java. Everything I tried seemed to get into invalid states that could not be killed.
|
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
|
 |
 |
|
|
subject: simple play midi file example
|
|
|