com.softsynth.jmsl.score.midi
Class JavaSoundMidiRenderer
java.lang.Object
com.softsynth.jmsl.score.midi.JavaSoundMidiRenderer
- All Implemented Interfaces:
- java.util.EventListener, javax.sound.midi.MetaEventListener
public class JavaSoundMidiRenderer
- extends java.lang.Object
- implements javax.sound.midi.MetaEventListener
Load up a JavaSound Sequencer with data derived from a Score
- Author:
- Nick Didkovsky, 11/24/01 9:45PM
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEQUENCER_RESOLUTION
public static final int SEQUENCER_RESOLUTION
- See Also:
- Constant Field Values
JavaSoundMidiRenderer
public JavaSoundMidiRenderer()
setScore
public void setScore(Score s)
open
public void open()
throws javax.sound.midi.MidiUnavailableException
- Throws:
javax.sound.midi.MidiUnavailableException
close
public void close()
meta
public void meta(javax.sound.midi.MetaMessage message)
- Specified by:
meta
in interface javax.sound.midi.MetaEventListener
setSectionPlayback
public void setSectionPlayback(boolean f)
loadSequencer
public void loadSequencer()
throws javax.sound.midi.InvalidMidiDataException
- Throws:
javax.sound.midi.InvalidMidiDataException
playSequencer
public void playSequencer()
stopSequencer
public void stopSequencer()
saveMidiFile
public void saveMidiFile(java.io.File file)
notifyStop
public void notifyStop()