public class MidiPlayer extends java.lang.Object
The first and only parameter is the name of the file to be played.
This is based on the GitHub Gist item indy/play_midi_filejava. It was mentioned in http://blog.taragana.com/index.php/archive/how-to-play-a-midi-file-from-a-java-application/
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String[] |
args |
Main driver program.
|
Constructor | Description |
---|---|
MidiPlayer(java.lang.String[] value) |
Modifier and Type | Method | Description |
---|---|---|
private static void |
helpAndExit() |
Provides help message and exits the program
|
static void |
main(java.lang.String[] args) |
|
protected void |
run() |
protected java.lang.String[] args
The code for verifying that it is a MIDI file needs to be improved.
public MidiPlayer(java.lang.String[] value)
public static void main(java.lang.String[] args)
protected void run()
private static void helpAndExit()
Copyright © 2017. All rights reserved.