Optional
alpha?: numberOptional
colorA 256 long array of 4-element arrays. Each entry should contain a float between 0 and 1 and specify r, g, b, and alpha. Each entry should contain a float between 0 and 1 and specify r, g, b, and alpha.
Optional
container?: string | HTMLElementSelector of element or element in which to render
Optional
fftNumber of samples to fetch to FFT. Must be a power of 2.
Optional
frequencyMax frequency to scale spectrogram. Set this to samplerate/2 to draw whole range of spectrogram.
Optional
frequencyMin frequency to scale spectrogram.
Optional
gainDB?: numberIncreases / decreases the brightness of the display. For small signals where the display is mostly "blue" (dark) you can increase this value to see brighter colors and give more detail. If the display has too much "white", decrease this value. The default is 20dB and corresponds to a -20 dB signal at a particular frequency being displayed as "white".
Optional
height?: numberHeight of the spectrogram view in CSS pixels
Optional
labels?: booleanSet to true to display frequency labels.
Optional
labelsOptional
labelsOptional
labelsOptional
noverlap?: numberSize of the overlapping window. Must be < fftSamples. Auto deduced from canvas size by default.
Optional
rangeDB?: numberAffects the range of signal sizes that will be displayed as colors. The default is 80 dB and means that you will not see anything for signals 80 dB below the value set for "Gain".
Optional
scale?: "linear" | "mel"Based on: https://manual.audacityteam.org/man/spectrogram_settings.html
Optional
splitRender a spectrogram for each channel independently when true.
Optional
windowThe window function to be used.
Generated using TypeDoc
Some window functions have this extra value. (Between 0 and 1)