Struct VoiceSpectrogramMeta#

Struct Documentation#

struct VoiceSpectrogramMeta#

How to read the spectrogram PNG that accompanies a .voice.json.

Public Functions

inline bool has_image() const#

Public Members

QString imagePath#

Absolute path, resolved next to the JSON. Empty when the file declared no image, which is legal — tracks alone are still worth drawing.

int width = 0#
int height = 0#
double t0Ms = 0.0#

Time span the image covers. Deliberately separate from the clip’s own duration: parselmouth, the WAV header and QMediaPlayer can disagree by tens of milliseconds, so the image is drawn into its slice of the widget’s timeline rather than being allowed to define that timeline.

double t1Ms = 0.0#
double f0Hz = 0.0#
double f1Hz = 0.0#
double dbMin = 0.0#

The dB values that image intensities 0 and 255 correspond to. Kept so a readout or colour bar can name real units later.

double dbMax = 0.0#