Generative background-music engine · @simpllyf/ditty

Background music that writes itself.

Endless, seamless, peppy background music — generated live in the browser. Seed it once; it never repeats, never wears thin.

Try the playground GitHub
$ npm i @simpllyf/ditty
Live playground
Real engine · generated in your browser
paused — press play
Vibe

Small library, serious engine.

Pure TypeScript, no samples, no dependencies. The whole thing is built to disappear into your product.

Why ditty

Ambient sound, without the licensing or the loop fatigue.

Looped audio files get old in minutes and cost money to license. ditty composes fresh music continuously from a few kilobytes of code — perfect for anything a user keeps open for a while.

Quickstart

Two lines to a soundtrack.

Construct an engine and start it from a user gesture. That's the whole integration. Everything else — scale, tempo, instruments — is optional.

app.ts

          

Give your app a soundtrack in an afternoon.

Play with it Read the docs