plugin.midi
Class MidiAnalyzer

java.lang.Object
  extended by plugin.midi.MidiAnalyzer
All Implemented Interfaces:
IArcPlugin

public class MidiAnalyzer
extends java.lang.Object
implements IArcPlugin

Analysis of a Midi Input File. Parses the File and returns the several Tracks converted into lists of note objects.

Author:
Andreas

Constructor Summary
MidiAnalyzer()
          Create a new instance
 
Method Summary
 edu.umd.cs.piccolo.PNode getDescription()
          get the tabulature for midi files
 float getFuzzyFactor()
          returns the fuzzy factor
 java.util.List getItems()
          returns the list created by this instance
 java.lang.String getName()
          get the Plugin name
 int getNrOfTracks()
          get the number of tracks of this midi file
 javax.swing.JPanel getPanel()
          get the Midi Panel
 boolean isEqual(java.lang.Object o1, java.lang.Object o2)
          find out if two note objects are equal or not
 java.lang.String list2String(java.util.List l)
          converts the list of note objects into a string
 void setFile(java.io.File file)
          set the midi-file that has to be read
 void setFuzzyFactor(float f)
          set the Fuzzy factor
 void setTrackNr(int nr)
          set the track number
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidiAnalyzer

public MidiAnalyzer()
Create a new instance

Method Detail

getName

public java.lang.String getName()
get the Plugin name

Specified by:
getName in interface IArcPlugin

isEqual

public boolean isEqual(java.lang.Object o1,
                       java.lang.Object o2)
find out if two note objects are equal or not

Specified by:
isEqual in interface IArcPlugin
Returns:
'true' if the objects are equal, 'false' else.

getPanel

public javax.swing.JPanel getPanel()
get the Midi Panel

Specified by:
getPanel in interface IArcPlugin

list2String

public java.lang.String list2String(java.util.List l)
converts the list of note objects into a string

Specified by:
list2String in interface IArcPlugin
Parameters:
l - should be the list returned by getItems (or a part of it)

getItems

public java.util.List getItems()
                        throws java.lang.Exception
returns the list created by this instance

Specified by:
getItems in interface IArcPlugin
Throws:
java.lang.Exception

setFile

public void setFile(java.io.File file)
set the midi-file that has to be read

Parameters:
file - the midi file

setFuzzyFactor

public void setFuzzyFactor(float f)
set the Fuzzy factor


getFuzzyFactor

public float getFuzzyFactor()
returns the fuzzy factor


setTrackNr

public void setTrackNr(int nr)
set the track number


getNrOfTracks

public int getNrOfTracks()
get the number of tracks of this midi file


getDescription

public edu.umd.cs.piccolo.PNode getDescription()
get the tabulature for midi files

Specified by:
getDescription in interface IArcPlugin