Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Pitchmarks Class Reference
[BOSS OLA Module]

A row of pitchmarks. More...

#include <pitchmarks.h>

List of all members.

Public Member Functions

 Pitchmarks ()
 Pitchmarks (vector< pair< double, double > >, double duration, double startTime)
void loadPitchmarks (const string &filename, const double start, const double end)
 Format independent Pitchmarks loading function.

bool selfCheck ()
 Performs an integrity check of the Pitchmarks class' instance. Returns true if all is ok, 'false' otherwise.


Private Member Functions

int getPitchmarkFormat (const string &filename)
 Determines what pitchmark loading algorithm to use.

void loadPraatPitchmarks (const string &filename, const double start, const double end)
 Loads pitchmarks from a file in the praat format.

void loadRawPitchmarks (const string &filename, const double start, const double end)
 Loads Pitchmarks for a file in raw format. The file is formatted as a column of real numbers.

double interpolate (double x, const pair< double, double > &p1, const pair< double, double > &p2)
 Linear interpolation of two points in 2D space.


Detailed Description

A row of pitchmarks.


Constructor & Destructor Documentation

Pitchmarks::Pitchmarks  )  [inline]
 

Pitchmarks::Pitchmarks vector< pair< double, double > >  ,
double  duration,
double  startTime
 


Member Function Documentation

int Pitchmarks::getPitchmarkFormat const string &  filename  )  [private]
 

Determines what pitchmark loading algorithm to use.

double Pitchmarks::interpolate double  x,
const pair< double, double > &  p1,
const pair< double, double > &  p2
[private]
 

Linear interpolation of two points in 2D space.

Parameters:
x Determines a position on x-axis where we want to interpolate the value.
p1 First 2d point
p2 Second 2d point
Returns:
the interpolated value

void Pitchmarks::loadPitchmarks const string &  filename,
const double  start,
const double  end
 

Format independent Pitchmarks loading function.

void Pitchmarks::loadPraatPitchmarks const string &  filename,
const double  start,
const double  end
[private]
 

Loads pitchmarks from a file in the praat format.

Parameters:
filename filename of the praat file storing pitchmarks
start start time from that we start reading
end end time until that we read

void Pitchmarks::loadRawPitchmarks const string &  filename,
const double  start,
const double  end
[private]
 

Loads Pitchmarks for a file in raw format. The file is formatted as a column of real numbers.

Parameters:
filename filename of the file storing pitchmarks
start start time from that we start reading
end end time until that we read

bool Pitchmarks::selfCheck  ) 
 

Performs an integrity check of the Pitchmarks class' instance. Returns true if all is ok, 'false' otherwise.


The documentation for this class was generated from the following files:
Generated on Tue Dec 20 23:14:41 2005 for BOSS by doxygen 1.3.6