This worker receives messages from the main thread to initialize, resize, or render time-domain data as a waveform visualization.
- Version
- 1.0.0
- License
- MIT
- Source
- VisualizerTimeWorker.js, line 9
Methods
private, inner render(timeData)
Renders a waveform visualization based on the provided time-domain data.
| Name | Type | Description |
|---|---|---|
timeData |
Array<Array<number>> |
An array containing time-domain data for each channel. |
- Source
- VisualizerTimeWorker.js, line 16
private, inner onmessage(event)
Global message handler for the worker.
| Name | Type | Description |
|---|---|---|
event |
MessageEvent |
The message event sent from the main thread. |
- Listens
- event:MessageEvent
- Source
- VisualizerTimeWorker.js, line 47