SpectrogramViewState
SpectrogramViewState
View state for the spectrogram (zoom, pan, bounds).
#include <SpectrogramState.hpp>
Public Attributes
| Name | |
|---|---|
| double | x_min Time before alignment in ms (typically negative). Defines data window start. |
| double | x_max Time after alignment in ms (typically positive). Defines data window end. |
| double | x_zoom X-axis (time) zoom factor. 1.0 = full window, 2.0 = show half the window. |
| double | y_zoom Y-axis (frequency) zoom factor. 1.0 = all frequencies fit, 2.0 = half the frequencies fit. |
| double | x_pan X-axis pan offset in world units (ms). Positive = view shifts right. |
| double | y_pan Y-axis pan offset in normalized units. Positive = view shifts up. |
Public Attributes Documentation
variable x_min
double x_min = -500.0;Time before alignment in ms (typically negative). Defines data window start.
variable x_max
double x_max = 500.0;Time after alignment in ms (typically positive). Defines data window end.
variable x_zoom
double x_zoom = 1.0;X-axis (time) zoom factor. 1.0 = full window, 2.0 = show half the window.
variable y_zoom
double y_zoom = 1.0;Y-axis (frequency) zoom factor. 1.0 = all frequencies fit, 2.0 = half the frequencies fit.
variable x_pan
double x_pan = 0.0;X-axis pan offset in world units (ms). Positive = view shifts right.
variable y_pan
double y_pan = 0.0;Y-axis pan offset in normalized units. Positive = view shifts up.
Updated on 2026-11-13 at 20:25:39 +0000