Skip to main content

Interface: NormalizeOptions

Defined in: display.ts:372

Extended by​

Properties​

floorDb?​

floorDb?: number;

Defined in: display.ts:387

Level mapped to 0 by scale: 'db', in dB relative to the reference. Default -40.


reference?​

reference?: number;

Defined in: display.ts:385

Level that maps to 1. Defaults to the largest magnitude of the input; use peaksLevel for a stable scale across zoom levels and bar counts. Values above the reference are clamped.


scale?​

scale?: "linear" | "db";

Defined in: display.ts:379

  • linear (default): divide by the reference. Keeps silence at 0 and the proportions between bars.
  • db: decibels relative to the reference, mapped from floorDb…0 dB to 0…1. Brings out quiet passages.