bodhidharma.midi_parsing.multi_dimensional_features
Class NotePrevalenceOfPitchedInstrumentsFeature

java.lang.Object
  extended by bodhidharma.data_structures.Feature
      extended by bodhidharma.midi_parsing.multi_dimensional_features.FeatureMultiDimensional
          extended by bodhidharma.midi_parsing.multi_dimensional_features.NotePrevalenceOfPitchedInstrumentsFeature

public class NotePrevalenceOfPitchedInstrumentsFeature
extends FeatureMultiDimensional

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

The constructor takes in an intermediate representation of a recording and derives the values 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.multi_dimensional_features.FeatureMultiDimensional
value
 
Constructor Summary
NotePrevalenceOfPitchedInstrumentsFeature(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.multi_dimensional_features.FeatureMultiDimensional
getValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotePrevalenceOfPitchedInstrumentsFeature

public NotePrevalenceOfPitchedInstrumentsFeature(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 null if the parameter is null.

Method Detail

getName

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

Specified by:
getName in class FeatureMultiDimensional

getDescription

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

Specified by:
getDescription in class FeatureMultiDimensional

getCode

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

Specified by:
getCode in class FeatureMultiDimensional