Interface: Peaks
Defined in: peaks.ts:21
Result of analyzeAudio: per-bucket statistics of a decoded audio
file (or a range of it) at a fixed resolution of framesPerBucket frames.
Plain data: it can be cached, serialized with encodePeaks and turned into any number of bars with resample without decoding again. Treat it as immutable.
Properties
channels
channels: PeakChannel[];
Defined in: peaks.ts:32
One entry for mixed channels (default), one per channel with splitChannels.
frameCount
frameCount: number;
Defined in: peaks.ts:28
Number of analyzed frames. The last bucket may cover fewer frames.
framesPerBucket
framesPerBucket: number;
Defined in: peaks.ts:24
Frames (samples per channel) per bucket.
length
length: number;
Defined in: peaks.ts:30
Buckets per channel.
sampleRate
sampleRate: number;
Defined in: peaks.ts:22
startFrame
startFrame: number;
Defined in: peaks.ts:26
First analyzed frame, relative to the start of the file.