DSP in Browsers jitter Web-API Audio Worklet

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
I want to detect audio transients in a browser. Many. Like 600 per minute or each 100ms. When I work with "requestAnimationFrame" I have very unpleasent jitters. The inconsistency can be seen here in this image. https://imgur.com/a/KmCvssd (https://imgur.com/a/KmCvssd)

The transient (onbeat) detection actually already works better than expected. All peaks are distinct but the amplitude differ so much that it is difficult to set a treshhold that get 99% of all transients. The image also relates to a measurement lower than 300ms. at 100ms the problems are way worse.

I moved the processing to Audio Worklet but it really seems like a mess. I did not get anything running yet. I am curious about some opinions and experiences. I never did a VST3. I assume doing such tasks in DAW is simple ?!?
You do not have the required permissions to view the files attached to this post.

Post

You've gotta use AudioWorklet for anything where you're actually dealing with audio. How were you getting the samples previously?

Post Reply

Return to “DSP and Plugin Development”