Here you can see live example of audio and paint worklets usage.
- We connect to user's media stream.
- Transform digital sound from media stream to analytical data by using Web Audio API. In our case we interested in Sound intensity (Db) over time.
- Then we transform analytical data to visualization data with D3. It means Db over time to points (x/y) coordinates.
- At the end we transform our points (visualization data) to pixels (render images) with Canvas API.