bodhidharma.midi_parsing.one_dimensional_features
Class AmountOfArpeggiationFeature

java.lang.Object
  extended by bodhidharma.data_structures.Feature
      extended by bodhidharma.midi_parsing.one_dimensional_features.FeatureOneDimensional
          extended by bodhidharma.midi_parsing.one_dimensional_features.AmountOfArpeggiationFeature

public class AmountOfArpeggiationFeature
extends FeatureOneDimensional

Each object of this class calculates the value of a single 1-D feature (described in the getDescription method) and stores it.

The constructor takes in an intermediate representation of a recording and derives the value of the feature from it.

The getName, getDescription, and getCode methods can be called to get information identifying the feature.

Author:
Cory McKay

Field Summary
 
Fields inherited from class bodhidharma.midi_parsing.one_dimensional_features.FeatureOneDimensional
value
 
Constructor Summary
AmountOfArpeggiationFeature(MIDIIntermediateRepresentations recording_info)
          Take in the intermediate representations of a MIDI file and generate the feature value based on them.
 
Method Summary
 java.lang.String getCode()
          Returns the code number of the feature.
 java.lang.String getDescription()
          Returns a sentence or two describing the feature.
 java.lang.String getName()
          Returns the name of the feature.
 
Methods inherited from class bodhidharma.midi_parsing.one_dimensional_features.FeatureOneDimensional
getValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmountOfArpeggiationFeature

public AmountOfArpeggiationFeature(MIDIIntermediateRepresentations recording_info)
Take in the intermediate representations of a MIDI file and generate the feature value based on them. Sets the feature value to -1 if the parameter is null.

Method Detail

getName

public java.lang.String getName()
Returns the name of the feature.

Specified by:
getName in class FeatureOneDimensional

getDescription

public java.lang.String getDescription()
Returns a sentence or two describing the feature.

Specified by:
getDescription in class FeatureOneDimensional

getCode

public java.lang.String getCode()
Returns the code number of the feature.

Specified by:
getCode in class FeatureOneDimensional