A night, in a few kilobytes.
Six places at a retreat by the sea, each with a machine that plays it. Nothing here is a recording: the sound is made as you listen, never repeats, and ends by itself when you ask it to.
Press play and the lanterns come up. Start a wind down and they go out with the music.
The machine its own device, in the kit's look
Forever Effects run inside the machine
Shape it Macro 1 and 2: what your app would expose
In your app.
This page is the SDK and nothing else: one session, six machines, a skin each. The pictures are stills from Blender; the lanterns follow machine.level and the session's wind down.
import { createSession } from 'https://forevermachines.net/sdk/index.js'; const fm = createSession(); const skins = await fm.themes(); // the machine, in the kit's own look, with an effect inside // (add hidden: true for sound only) const tide = await fm.mount(document.body, { url: 'https://forevermachines.net/sleep/machines/slow-tide.js' }, { theme: skins.byName.midnight, effect: 'snowed-in' }); // browsers keep audio quiet until the visitor taps button.onclick = () => fm.power(true); tide.macro(1, 0.4); // mood and intensity: Macro 1–8 tide.note(64); // a note, in the machine's own voice tide.meter(true); // tide.level: light a lantern with it fm.drift(true); // the knobs wander, nothing repeats fm.windDown(30); // ends by itself in about 30 min
Paste it into any page and it runs, no install. In a project with a bundler: npm install @forevermachines/sdk and import from '@forevermachines/sdk'.
On an Android phone, the same six places run natively: download the demo app (an APK, 38 MB; your browser will ask to allow installing it). It is built on the Android SDK, source here.