org.deken.game.sound.audio.midiAudioFilter
Class MidiAudioFilter

java.lang.Object
  extended by org.deken.game.sound.audio.midiAudioFilter.MidiAudioFilter
All Implemented Interfaces:
Updateable
Direct Known Subclasses:
DistanceMidiFilter

public abstract class MidiAudioFilter
extends java.lang.Object
implements Updateable

Title: MidiAudioFilter

Description: Base class for filtering a Midi sequence. This class has a setup method, that must be over-ridden, and the setup flag set. A Filter may need to get the Channels from a Midi synthesizer, but should do it until the midi is started.

Copyright: Copyright (c) Dec 13, 2012

Version:
1.0
Author:
Gary Deken

Field Summary
protected  boolean setupStatus
           
protected  javax.sound.midi.Synthesizer synthesizer
           
 
Constructor Summary
MidiAudioFilter()
           
 
Method Summary
 void setSynthesizer(javax.sound.midi.Synthesizer synthesizer)
           
abstract  void setup()
           
 void update(long elapseTime)
          This method takes the elapse time, and calculates the new current frame of the animation.
protected abstract  void updateFilter(long elapseTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deken.game.Updateable
getName
 

Field Detail

synthesizer

protected javax.sound.midi.Synthesizer synthesizer

setupStatus

protected boolean setupStatus
Constructor Detail

MidiAudioFilter

public MidiAudioFilter()
Method Detail

setup

public abstract void setup()

update

public void update(long elapseTime)
Description copied from interface: Updateable
This method takes the elapse time, and calculates the new current frame of the animation.

Specified by:
update in interface Updateable
Parameters:
elapseTime - long

setSynthesizer

public void setSynthesizer(javax.sound.midi.Synthesizer synthesizer)

updateFilter

protected abstract void updateFilter(long elapseTime)