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.
- Panel
Spec - 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.