Marsyas
0.6.0-alpha
|
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 &List, realvec &boundaries, const mrs_real cutoff) |
static void | filterAmpBoundaries (realvec &List, realvec &boundaries) |
static void | discardEndingTotalSilenceAmpsOnly (realvec &List) |
Note stuff | |
static realvec | getNotes (const realvec &pitchList, const realvec &List, const realvec &boundaries) |
static void | discardBeginEndSilences (const realvec &pitchList, const realvec &List, realvec &boundaries) |
static void | discardBeginEndSilencesAmpsOnly (const realvec &List, realvec &boundaries) |
static void | getRelativeDurations (const realvec &boundaries, realvec &durations) |
A collection of functions which simplify transcription (detecting onsets via pitch and amplitudes, calculating notes, etc).
Definition at line 17 of file Transcriber.h.
Transcriber | ( | ) |
Definition at line 14 of file Transcriber.cpp.
~Transcriber | ( | ) |
Definition at line 18 of file Transcriber.cpp.
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.
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.