org.herac.tuxguitar.player

Class NullPlayer

Implemented Interfaces:
MidiPlayer

public class NullPlayer
extends java.lang.Object
implements MidiPlayer

Method Summary

void
close()
Option
getConfigOption(ConfigEditor editor, ToolBar toolBar, Composite parent)
String
getInstrumentName(int instrument)
Soundbank
getSoundbank()
List
getSystemErrors()
long
getTickPosition()
void
init()
boolean
isMetronomeEnabled()
boolean
isPaused()
boolean
isRunning()
boolean
loadSoundbank(File file)
void
pause()
void
play()
void
playBeat(SongTrack track, List notes)
void
reset()
void
setMetronomeEnabled(boolean metronomeEnabled)
void
setSynthesizer(Synthesizer synthesizer)
void
setTickPosition(long position, long startMove)
void
stop()
void
updateControllers()
void
updatePrograms()
void
write(OutputStream out)

Method Details

close

public void close()
Specified by:
close in interface MidiPlayer

getConfigOption

public Option getConfigOption(ConfigEditor editor,
                              ToolBar toolBar,
                              Composite parent)
Specified by:
getConfigOption in interface MidiPlayer

getInstrumentName

public String getInstrumentName(int instrument)
Specified by:
getInstrumentName in interface MidiPlayer

getSoundbank

public Soundbank getSoundbank()
Specified by:
getSoundbank in interface MidiPlayer

getSystemErrors

public List getSystemErrors()
Specified by:
getSystemErrors in interface MidiPlayer

getTickPosition

public long getTickPosition()
Specified by:
getTickPosition in interface MidiPlayer

init

public void init()
Specified by:
init in interface MidiPlayer

isMetronomeEnabled

public boolean isMetronomeEnabled()
Specified by:
isMetronomeEnabled in interface MidiPlayer

isPaused

public boolean isPaused()
Specified by:
isPaused in interface MidiPlayer

isRunning

public boolean isRunning()
Specified by:
isRunning in interface MidiPlayer

loadSoundbank

public boolean loadSoundbank(File file)
Specified by:
loadSoundbank in interface MidiPlayer

pause

public void pause()
Specified by:
pause in interface MidiPlayer

play

public void play()
Specified by:
play in interface MidiPlayer

playBeat

public void playBeat(SongTrack track,
                     List notes)
Specified by:
playBeat in interface MidiPlayer

reset

public void reset()
Specified by:
reset in interface MidiPlayer

setMetronomeEnabled

public void setMetronomeEnabled(boolean metronomeEnabled)
Specified by:
setMetronomeEnabled in interface MidiPlayer

setSynthesizer

public void setSynthesizer(Synthesizer synthesizer)
Specified by:
setSynthesizer in interface MidiPlayer

setTickPosition

public void setTickPosition(long position,
                            long startMove)
Specified by:
setTickPosition in interface MidiPlayer

stop

public void stop()
Specified by:
stop in interface MidiPlayer

updateControllers

public void updateControllers()
Specified by:
updateControllers in interface MidiPlayer

updatePrograms

public void updatePrograms()
Specified by:
updatePrograms in interface MidiPlayer

write

public void write(OutputStream out)
Specified by:
write in interface MidiPlayer