Struct VoiceTrack#

Struct Documentation#

struct VoiceTrack#

A uniformly-sampled curve: value i is at t0Ms + i * dtMs.

Uniform rather than (time, value) pairs because Praat’s own output already is, so nothing is lost, the file is half the size, and lookup is arithmetic instead of a search.

Public Functions

inline bool is_valid() const#

dtMs > 0 is load-bearing, not cosmetic: every lookup divides by it.

float at(double ms, float fallback) const#

Nearest sample to ms, or fallback outside the track’s span.

Public Members

double t0Ms = 0.0#
double dtMs = 0.0#
QVector<float> values#