inpro.pitch
Class PitchedDoubleData

java.lang.Object
  extended by edu.cmu.sphinx.util.machlearn.OVector
      extended by edu.cmu.sphinx.frontend.DoubleData
          extended by inpro.pitch.PitchedDoubleData
All Implemented Interfaces:
edu.cmu.sphinx.frontend.Data, java.io.Serializable, java.lang.Cloneable

public class PitchedDoubleData
extends edu.cmu.sphinx.frontend.DoubleData

See Also:
Serialized Form

Field Summary
(package private)  java.util.List<PitchCandidate> candidates
          all the pitch candidates for this frame, i.e. peaks in the autocorrelation function
(package private)  boolean deferred
          whether voicing information is already available
(package private)  double pitchHz
          the pitch in Hz for this frame
(package private)  java.lang.Double power
          the signal power
private  ddf.minim.effects.RevisedBCurveFilter rbcFilter
           
(package private)  java.lang.Double rbcFilteredPower
           
(package private)  boolean voiced
          whether the frame was classified as voiced
(package private)  double voicing
          more informative voicing strength on a scale from 0 to 1
 
Fields inherited from class edu.cmu.sphinx.util.machlearn.OVector
values
 
Constructor Summary
PitchedDoubleData(edu.cmu.sphinx.frontend.DoubleData data)
          use this if pitch calculation has not yet completed (add results later with setPitch()
PitchedDoubleData(edu.cmu.sphinx.frontend.DoubleData data, boolean voiced, double voicing, double pitch, java.util.List<PitchCandidate> candidates)
          use this if calculation has already finished and all values can be set
 
Method Summary
 java.util.List<PitchCandidate> getCandidates()
           
 double getPitchCentTo110Hz()
           
 double getPitchHz()
           
 double getPower()
           
 double getRbcFilteredPower()
           
 double getVoicing()
           
 boolean isVoiced()
           
(package private)  void setPitch(java.util.List<PitchCandidate> candidates, double pitchHz, boolean voiced, double voicing)
          set pitch-relevant properties after construction
 void setPitchHz(double hz)
           
 void setVoiced(boolean v)
           
static double signalPower(double[] samples)
          calculate signal power (averaged per sample)
 java.lang.String toString()
           
 
Methods inherited from class edu.cmu.sphinx.frontend.DoubleData
clone, getCollectTime, getFirstSampleNumber, getSampleRate
 
Methods inherited from class edu.cmu.sphinx.util.machlearn.OVector
dimension, equals, getValues, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

deferred

boolean deferred
whether voicing information is already available


voiced

boolean voiced
whether the frame was classified as voiced


voicing

double voicing
more informative voicing strength on a scale from 0 to 1


pitchHz

double pitchHz
the pitch in Hz for this frame


power

java.lang.Double power
the signal power


rbcFilteredPower

java.lang.Double rbcFilteredPower

rbcFilter

private ddf.minim.effects.RevisedBCurveFilter rbcFilter

candidates

java.util.List<PitchCandidate> candidates
all the pitch candidates for this frame, i.e. peaks in the autocorrelation function

Constructor Detail

PitchedDoubleData

public PitchedDoubleData(edu.cmu.sphinx.frontend.DoubleData data)
use this if pitch calculation has not yet completed (add results later with setPitch()


PitchedDoubleData

public PitchedDoubleData(edu.cmu.sphinx.frontend.DoubleData data,
                         boolean voiced,
                         double voicing,
                         double pitch,
                         java.util.List<PitchCandidate> candidates)
use this if calculation has already finished and all values can be set

Method Detail

setPitch

void setPitch(java.util.List<PitchCandidate> candidates,
              double pitchHz,
              boolean voiced,
              double voicing)
set pitch-relevant properties after construction


setVoiced

public void setVoiced(boolean v)

isVoiced

public boolean isVoiced()

getVoicing

public double getVoicing()

setPitchHz

public void setPitchHz(double hz)

getPitchHz

public double getPitchHz()

getPitchCentTo110Hz

public double getPitchCentTo110Hz()

signalPower

public static double signalPower(double[] samples)
calculate signal power (averaged per sample)


getPower

public double getPower()

getRbcFilteredPower

public double getRbcFilteredPower()

getCandidates

public java.util.List<PitchCandidate> getCandidates()

toString

public java.lang.String toString()
Overrides:
toString in class edu.cmu.sphinx.frontend.DoubleData