by drakinite » Mon Mar 08, 2021 10:53 am
I see now that a DR meter is realtime, so it wouldn't work from volume analysis data.
Inside Scripts/vis_oscillator, there is code that fetches raw PCM data and displays as a waveform. The same data could be used to calculate dynamic range, and displayed as a visualization.
Edit: The oscillator visualization also calculates VU meter values. So the solution could be make some visualization based on oscillator, i.e. register
app.player.visualization.registerVisTypes(['oscilloscope']); That way, the app will prepare data including maxLeft and maxRight, and then the visualizer can present it some way.
I see now that a DR meter is realtime, so it wouldn't work from volume analysis data.
Inside Scripts/vis_oscillator, there is code that fetches raw PCM data and displays as a waveform. The same data could be used to calculate dynamic range, and displayed as a visualization.
Edit: The oscillator visualization also calculates VU meter values. So the solution could be make some visualization based on oscillator, i.e. register
app.player.visualization.registerVisTypes(['oscilloscope']); That way, the app will prepare data including maxLeft and maxRight, and then the visualizer can present it some way.