Audio · class
RenderedPulse
Explained in Your first game.
class RenderedPulseimport { RenderedPulse } from '@driftengine/audio';Constructor
new
constructor(buffer: AudioBuffer)| Parameter | Type | Description |
|---|---|---|
buffer | AudioBuffer | The rendered mix. Channel 0 is read; a kick is not a stereo event. |
Methods
at
at(seconds: number): numberThe pulse at seconds, 0–1.
| Parameter | Type | Description |
|---|---|---|
seconds | number |
More
Interpolated between hops so a light moves smoothly at any frame rate rather than stepping at the analysis rate.