public class PlayMidi extends Object implements MetaEventListener
| Modifier and Type | Field and Description |
|---|---|
private DecimalFormat |
df |
private static int |
END_OF_TRACK |
private String |
filename |
private static org.apache.log4j.Logger |
logger |
private Sequence |
seq |
private Sequencer |
sequencer |
private static String |
SOUND_DIR |
private Synthesizer |
synthesizer |
| Modifier and Type | Method and Description |
|---|---|
private void |
close() |
private void |
initSequencer() |
private void |
loadMidi(String fnm) |
static void |
main(String[] args) |
void |
meta(MetaMessage event) |
private void |
play() |
private static final org.apache.log4j.Logger logger
private static final int END_OF_TRACK
private static final String SOUND_DIR
private Sequencer sequencer
private Synthesizer synthesizer
private Sequence seq
private String filename
private DecimalFormat df
public PlayMidi(String fnm)
private void initSequencer()
private void loadMidi(String fnm)
private void play()
public void meta(MetaMessage event)
meta in interface MetaEventListenerprivate void close()
public static void main(String[] args)
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.