jAudioFeatureExtractor.jMIDITools
Class MIDIMethodsPlayback

java.lang.Object
  extended by jAudioFeatureExtractor.jMIDITools.MIDIMethodsPlayback

public class MIDIMethodsPlayback
extends java.lang.Object

A holder class for static methods and internal classes relating to playing MIDIrecordings.

Author:
Cory McKay

Constructor Summary
MIDIMethodsPlayback()
           
 
Method Summary
static javax.sound.midi.Sequencer playMIDISequence(javax.sound.midi.Sequence midi_sequence)
          Plays the given MIDI Sequence and returns the Sequencer that is playing it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIDIMethodsPlayback

public MIDIMethodsPlayback()
Method Detail

playMIDISequence

public static javax.sound.midi.Sequencer playMIDISequence(javax.sound.midi.Sequence midi_sequence)
                                                   throws java.lang.Exception
Plays the given MIDI Sequence and returns the Sequencer that is playing it. The default system Sequencer and Synthesizer are used.

Parameters:
midi_sequence - The MIDI sequence to play
Returns:
A sequencer that is playing the midi_sequence
Throws:
java.lang.Exception - Throws an exception if an empty MIDI sequence is passed as an argument or if cannoth play.