Marsyas  0.5.0-beta1
Public Member Functions
Transcriber Class Reference

A collection of functions which simplify transcription (detecting onsets via pitch and amplitudes, calculating notes, etc). More...

#include <Transcriber.h>

Inherits TranscriberExtract.

Public Member Functions

 Transcriber ()
 ~Transcriber ()

Static Public Member Functions

General fuctions
static mrs_real findMedianWithoutZeros (const mrs_natural start, const mrs_natural length, const realvec &array)
static realvec findValleys (const realvec &list)
static realvec findPeaks (const realvec &list, const mrs_real cutoff)
static mrs_real findNextPeakValue (const realvec &list, const mrs_natural start)
Pitch stuff
static void pitchSegment (const realvec &pitchList, realvec &boundaries, const mrs_natural width)
static realvec findPitchBoundaries (const realvec &pitchList, const mrs_natural width)
Amplitude stuff
static void ampSegment (const realvec &ampList, realvec &boundaries, const mrs_real cutoff)
static void filterAmpBoundaries (realvec &ampList, realvec &boundaries)
static void discardEndingTotalSilenceAmpsOnly (realvec &ampList)
Note stuff
static realvec getNotes (const realvec &pitchList, const realvec &ampList, const realvec &boundaries)
static void discardBeginEndSilences (const realvec &pitchList, const realvec &ampList, realvec &boundaries)
static void discardBeginEndSilencesAmpsOnly (const realvec &ampList, realvec &boundaries)
static void getRelativeDurations (const realvec &boundaries, realvec &durations)

Detailed Description

A collection of functions which simplify transcription (detecting onsets via pitch and amplitudes, calculating notes, etc).

Definition at line 17 of file Transcriber.h.


Constructor & Destructor Documentation

Definition at line 14 of file Transcriber.cpp.

Definition at line 18 of file Transcriber.cpp.


Member Function Documentation

void ampSegment ( const realvec ampList,
realvec boundaries,
const mrs_real  cutoff 
) [static]

Definition at line 222 of file Transcriber.cpp.

void discardBeginEndSilences ( const realvec pitchList,
const realvec ampList,
realvec boundaries 
) [static]

Definition at line 341 of file Transcriber.cpp.

void discardBeginEndSilencesAmpsOnly ( const realvec ampList,
realvec boundaries 
) [static]

Definition at line 393 of file Transcriber.cpp.

void discardEndingTotalSilenceAmpsOnly ( realvec ampList) [static]

Definition at line 381 of file Transcriber.cpp.

void filterAmpBoundaries ( realvec ampList,
realvec boundaries 
) [static]

Definition at line 250 of file Transcriber.cpp.

mrs_real findMedianWithoutZeros ( const mrs_natural  start,
const mrs_natural  length,
const realvec array 
) [static]

non-Transcriber-specific functions, but I don't think they're useful enough to add to realvec.

Definition at line 24 of file Transcriber.cpp.

mrs_real findNextPeakValue ( const realvec list,
const mrs_natural  start 
) [static]

Definition at line 130 of file Transcriber.cpp.

realvec findPeaks ( const realvec list,
const mrs_real  cutoff 
) [static]

Definition at line 49 of file Transcriber.cpp.

realvec findPitchBoundaries ( const realvec pitchList,
const mrs_natural  width 
) [static]

Definition at line 183 of file Transcriber.cpp.

realvec findValleys ( const realvec list) [static]

Definition at line 90 of file Transcriber.cpp.

realvec getNotes ( const realvec pitchList,
const realvec ampList,
const realvec boundaries 
) [static]

Definition at line 431 of file Transcriber.cpp.

void getRelativeDurations ( const realvec boundaries,
realvec durations 
) [static]

Definition at line 313 of file Transcriber.cpp.

void pitchSegment ( const realvec pitchList,
realvec boundaries,
const mrs_natural  width 
) [static]

Definition at line 157 of file Transcriber.cpp.


The documentation for this class was generated from the following files: