Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual output peak meter #52

Open
Elgoritm opened this issue May 29, 2023 · 1 comment
Open

Visual output peak meter #52

Elgoritm opened this issue May 29, 2023 · 1 comment

Comments

@Elgoritm
Copy link

Hey there!

Was wondering if would be possible to output the peak meter levels in a different way, for instance like this?

R 1db6b0f79bfc1a473e400a3bc3aeb726

Being able to have to have a meter that lights up for instance per 3dB would be cool.. is there an output that could be used for this?

@esonderegger
Copy link
Owner

If you wanted to build something like this using the web-audio-peak-meter library, you definitely could - by wrapping the getPeaks method in a requestAnimationFrame loop.

If you want to go this route, I'd recommend checking out the Usage without a DOM node example.

However, the parts of the code that create an audio worklet node and measure the input are relatively simple. You might want to copy the relevant bits from peak-sample-processor and have everything live in your source code without needing to add this library as a dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants