Skip to main content

Module spectrogram

Module spectrogram 

Source
Expand description

The spectrogram image: two log-frequency panels of a 10 s passage.

The image gives the reader coarse shape only; the numbers live in layers.json. The full panel uses 4096-point frames from 20 Hz to 20 kHz. The zoom panel uses 16384-point frames from 20 to 500 Hz, where 4096-point bins of about 11 Hz put a 41 Hz fundamental and its second harmonic only 4 bins apart.

Structs§

PanelDb
The level matrix of one panel in dB below the stem peak, before the colour map.
PanelSpec
One panel: its frame length and its frequency range.
Spectrogram
The spectrogram of a passage.

Constants§

HEIGHT
The image height in pixels.
PANELS
The two panels, top first.
PASSAGE_S
The length of the passage the image shows.
PLOT_HEIGHT
The plot height of each panel in pixels: one frequency band per row.
PLOT_WIDTH
The plot width in pixels: one STFT frame per column.
RANGE_DB
The colour range below the stem peak.
WIDTH
The image width in pixels. The long edge stays below 1568 pixels, where the image reader of the hosted model downscales.