Public
Edited
Jul 16, 2024
Insert cell
Insert cell
display = html`<canvas width="${width}" height="${height}">`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
if (frequencyBins != null) {
let context = display.getContext("2d");
scroll(context);
draw(context, frequencyBins);
}
return md`## Drawing the spectrogram`
}
Insert cell
Insert cell
Insert cell
Insert cell
frequencyBinCount = 64;
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more