Package eu.bandm.music.midi
Class Player
java.lang.Object
eu.bandm.music.midi.Player
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
void
init()
void
void
load
(InputStream stream) void
static void
protected int
microsecondsToModel
(long mus) protected long
modelToMicroseconds
(int mod) void
open()
void
pause()
void
play()
-
Field Details
-
init
-
play
-
pause
-
-
Constructor Details
-
Player
- Throws:
MidiUnavailableException
-
-
Method Details
-
addFilter
-
open
- Throws:
MidiUnavailableException
-
close
public void close() -
load
- Throws:
InvalidMidiDataException
IOException
-
load
- Throws:
InvalidMidiDataException
-
load
- Throws:
InvalidMidiDataException
IOException
-
init
public void init() -
play
public void play() -
pause
public void pause() -
getPositionModel
-
microsecondsToModel
protected int microsecondsToModel(long mus) -
modelToMicroseconds
protected long modelToMicroseconds(int mod) -
main
- Throws:
Exception
-