bodhidharma.midi_parsing.one_dimensional_features
Class FeatureOneDimensional

java.lang.Object
  extended by bodhidharma.data_structures.Feature
      extended by bodhidharma.midi_parsing.one_dimensional_features.FeatureOneDimensional
Direct Known Subclasses:
AcousticGuitarFractionFeature, AmountOfArpeggiationFeature, AverageMelodicIntervalFeature, AverageNoteDurationFeature, AverageNoteToNoteDynamicsChangeFeature, AverageNumberOfIndependentVoicesFeature, AverageRangeOfGlissandosFeature, AverageTimeBetweenAttacksFeature, AverageTimeBetweenAttacksForEachVoiceFeature, AverageVariabilityOfTimeBetweenAttacksForEachVoiceFeature, BrassFractionFeature, ChangesOfMeterFeature, ChromaticMotionFeature, CombinedStrengthOfTwoStrongestRhythmicPulsesFeature, CompoundOrSimpleMeterFeature, DirectionOfMotionFeature, DistanceBetweenMostCommonMelodicIntervalsFeature, DominantSpreadFeature, DurationOfMelodicArcsFeature, ElectricGuitarFractionFeature, ElectricInstrumentFractionFeature, GlissandoPrevalenceFeature, HarmonicityOfTwoStrongestRhythmicPulsesFeature, ImportanceOfBassRegisterFeature, ImportanceOfHighRegisterFeature, ImportanceOfLoudestVoiceFeature, ImportanceOfMiddleRegisterFeature, InitialTempoFeature, IntervalBetweenStrongestPitchClassesFeature, IntervalBetweenStrongestPitchesFeature, MaximumNoteDurationFeature, MaximumNumberOfIndependentVoicesFeature, MelodicFifthsFeature, MelodicIntervalsInLowestLineFeature, MelodicOctavesFeature, MelodicThirdsFeature, MelodicTritonesFeature, MinimumNoteDurationFeature, MostCommonMelodicIntervalFeature, MostCommonMelodicIntervalPrevalenceFeature, MostCommonPitchClassFeature, MostCommonPitchClassPrevalenceFeature, MostCommonPitchFeature, MostCommonPitchPrevalenceFeature, NoteDensityFeature, NumberOfCommonMelodicIntervalsFeature, NumberOfCommonPitchesFeature, NumberOfModeratePulsesFeature, NumberOfPitchedInstrumentsFeature, NumberOfRelativelyStrongPulsesFeature, NumberOfStrongPulsesFeature, NumberOfUnpitchedInstrumentsFeature, OrchestralStringsFractionFeature, OverallDynamicRangeFeature, PercussionPrevalenceFeature, PitchClassVarietyFeature, PitchVarietyFeature, PolyrhythmsFeature, PrimaryRegisterFeature, QualityFeature, QuintupleMeterFeature, RangeFeature, RangeOfHighestLineFeature, RelativeNoteDensityOfHighestLineFeature, RelativeRangeOfLoudestVoiceFeature, RelativeStrengthOfMostCommonIntervalsFeature, RelativeStrengthOfTopPitchClassesFeature, RelativeStrengthOfTopPitchesFeature, RepeatedNotesFeature, RhythmicLoosenessFeature, RhythmicVariabilityFeature, SaxophoneFractionFeature, SecondStrongestRhythmicPulseFeature, SizeOfMelodicArcsFeature, StaccatoIncidenceFeature, StepwiseMotionFeature, StrengthOfSecondStrongestRhythmicPulseFeature, StrengthOfStrongestRhythmicPulseFeature, StrengthRatioOfTwoStrongestRhythmicPulsesFeature, StringEnsembleFractionFeature, StringKeyboardFractionFeature, StrongestRhythmicPulseFeature, StrongTonalCentresFeature, TripleMeterFeature, VariabilityOfNoteDurationFeature, VariabilityOfNotePrevalenceOfPitchedInstrumentsFeature, VariabilityOfNotePrevalenceOfUnpitchedInstrumentsFeature, VariabilityOfNumberOfIndependentVoicesFeature, VariabilityOfTimeBetweenAttacksFeature, VariationOfDynamicsFeature, VariationOfDynamicsInEachVoiceFeature, VibratoPrevalenceFeature, ViolinFractionFeature, VoiceEqualityDynamicsFeature, VoiceEqualityMelodicLeapsFeature, VoiceEqualityNoteDurationFeature, VoiceEqualityNumberOfNotesFeature, VoiceEqualityRangeFeature, VoiceSeparationFeature, WoodwindsFractionFeature

public abstract class FeatureOneDimensional
extends Feature

An abstract class for holding a feature with a single value. Each class implementing this abstract class should hold the value of a single feature that is extracted from a recording.

The getValue method returns the value of the feature and the getValue method sets it.

The constructor of a class implementing this interface should take in an intermediate representation of a recording and derive the value of the feature from this. If this argument of the constructor is null, then the object should be initialized so that the value of the feature is -1.0.

See Also:
Feature
Author:
Cory McKay

Field Summary
protected  double value
           
 
Constructor Summary
FeatureOneDimensional()
           
 
Method Summary
abstract  java.lang.String getCode()
          Returns the code number of the feature.
abstract  java.lang.String getDescription()
          Returns a sentence or two describing the feature.
abstract  java.lang.String getName()
          Returns the name of the feature.
 double getValue()
          Returns the value of the feature for the recording whose data was used to construct this object.
 void setValue(double new_value)
          Sets the value of the feature for the recording whose data was used to construct this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected double value
Constructor Detail

FeatureOneDimensional

public FeatureOneDimensional()
Method Detail

getValue

public double getValue()
Returns the value of the feature for the recording whose data was used to construct this object.


setValue

public void setValue(double new_value)
Sets the value of the feature for the recording whose data was used to construct this object.


getName

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

Specified by:
getName in class Feature

getDescription

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

Specified by:
getDescription in class Feature

getCode

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

Specified by:
getCode in class Feature