#worklet

Sam2xAA
2025-04-25

About to release this JavaScript library 📚

It's a clock/scheduler which schedules notes for Web MIDI or Web Audio.

It can drive a MIDI clock 100% accurately, just like professional software such as Logic Pro or Ableton can do.

There’s no slowdown or drift as it uses an Audio Worklet to schedule using the audio thread 🧵

Screenshot of a README.md preview.

The text in the image reads:

DeadOn
DeadOn is a lightweight, precision-timing library for web applications. Leveraging the
AudioWorklet API, it delivers sample-accurate clock ticks at a configurable pulses-per-quarter-note resolution.
With DeadOn, you get a unified timebase for scheduling Web Audio and Web MIDI events, ensuring consistent timing even under heavy load.

Table of Contents

* Why DeadOn?

* Getting Started

* Main Concepts

* Using audioTime
Karsten Schmidttoxi@mastodon.thi.ng
2023-09-06

Now, if anyone would have some pointers how to easily get a WebAudio AudioWorklet going with @vite, then that example could be updated to produce realtime audio and I could listen to that for hours in the background... 🥰🎧

AFAICT support for worklets is still outstanding and so far I only managed it via pre-compiling/bundling the worklet code in a separate build step, but it's not great to work with that way during dev...

#WebAudio #ViteJS #Worklet

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst