com.jamesbryangraves.bob
Class BobApplication

java.lang.Object
  extended by com.jamesbryangraves.bob.BobApplication
All Implemented Interfaces:
java.lang.Runnable

public class BobApplication
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
BobApplication()
           
 
Method Summary
 Composer getComposer()
           
 BobMidiSequencer getSequencer()
           
 void init()
          creates a Sequence for the Sequencer adds a track to the sequence for every MusicEventGenerator in Composer opens the Sequencer
 void run()
          starts the composer starts the sequencer
 void setComposer(Composer composer)
           
 void setSequencer(BobMidiSequencer sequencer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BobApplication

public BobApplication()
Method Detail

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.