Demo currently uses dynamic normalization of the spectrum and sonogram, to ensure a visible value range. It should be possible to replace this dynamic normalization with a static one, as the waveform has a predictable amplitude range.
A possible approach could be to introduce a calibration of the spectral analysis; feed a sine wave of known amplitude and detect the output level.
Note that normalization is currently useful only for visualization. The map does not require normalized input, so no calibration of the suggested kind should burden normal usage.
Demo currently uses dynamic normalization of the spectrum and sonogram, to ensure a visible value range. It should be possible to replace this dynamic normalization with a static one, as the waveform has a predictable amplitude range.
A possible approach could be to introduce a calibration of the spectral analysis; feed a sine wave of known amplitude and detect the output level.
Note that normalization is currently useful only for visualization. The map does not require normalized input, so no calibration of the suggested kind should burden normal usage.