com.jamesbryangraves.bob
Class BobApplication
java.lang.Object
com.jamesbryangraves.bob.BobApplication
- All Implemented Interfaces:
- java.lang.Runnable
public class BobApplication
- extends java.lang.Object
- implements java.lang.Runnable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BobApplication
public BobApplication()
init
public void init()
throws javax.sound.midi.MidiUnavailableException,
javax.sound.midi.InvalidMidiDataException
- creates a Sequence for the Sequencer
adds a track to the sequence for every MusicEventGenerator in Composer
opens the Sequencer
- Throws:
javax.sound.midi.MidiUnavailableException
javax.sound.midi.InvalidMidiDataException
run
public void run()
- starts the composer
starts the sequencer
- Specified by:
run
in interface java.lang.Runnable
getComposer
public Composer getComposer()
setComposer
public void setComposer(Composer composer)
getSequencer
public BobMidiSequencer getSequencer()
setSequencer
public void setSequencer(BobMidiSequencer sequencer)
Copyright © 2007. All Rights Reserved.