Audio · class

RenderedPulse

Explained in Your first game.

class RenderedPulse
import { RenderedPulse } from '@driftengine/audio';

Constructor

new

constructor(buffer: AudioBuffer)
ParameterTypeDescription
bufferAudioBufferThe rendered mix. Channel 0 is read; a kick is not a stereo event.

Methods

at

at(seconds: number): number

The pulse at seconds, 0–1.

ParameterTypeDescription
secondsnumber
More

Interpolated between hops so a light moves smoothly at any frame rate rather than stepping at the analysis rate.