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

handle quiet audio waves #4820

Merged
merged 3 commits into from
Jan 27, 2025
Merged

Conversation

UmungoBungo
Copy link
Contributor

When processing extremely quiet audio (max amplitude < 0.001), the waveform visualization would over-amplify the noise due to normalization. This would make silent or near-silent sections appear as prominent waves.

For example, when I'm splitting this audio out into individual stems, it is common that one of the instruments is not present. In this screenshot, there is no piano:
image

This now treats audio below this threshold as silence by returning zeros instead of normalizing. Here are what the stems look like now:
image

Note that I still place a dot for the waveform when amplitude is zero, but that is in the canvas logic.

Copy link

vercel bot commented Jan 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bugs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 27, 2025 1:42pm
remotion ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 27, 2025 1:42pm

@JonnyBurger
Copy link
Member

Thanks a lot! 🙌

@JonnyBurger JonnyBurger merged commit c0adb6b into remotion-dev:main Jan 27, 2025
10 of 12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants