Defines an audio file's waveform, the bars the player seeks on: how many
peaks it has, and how they are taken from the samples. The server makes an
uploaded file's from its decoded audio (api/lib/ffmpeg.ts), and the
dump form a local file's in the browser (src/utils/player/waveform.ts),
both with peaksOf, so the two draw alike.
Usage
import * as mod from "shared/waveform.ts";