Skip to content
nf-sPublic

About

Drum machine and synth studio in the browser: drums, 303-style acid bass, arpeggiator, chord pads, vocal sampler, granular and string instruments, with live shared sessions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Grain

A drum machine and synth studio that runs in your browser. No install, no account.

Open Grain at acid-303.pages.dev

Grain: transport, performance dials, genre examples and the drum sequencer over the fluid visualizer

What you get

  • Eight instruments: five-lane drum machine, 303-style acid bass, Texture, Arpeggiator, Chord pads, Vocal sampler, Cloud (granular) and Tension (tuned resonator).
  • Draw everything: paint drum steps, draw pitch, gate, accent and glide, and draw automation for every knob. Notes stay locked to your chosen scale.
  • 21 genre examples from house and techno to jungle and UK bass, plus Remix for a fresh pattern.
  • Fluff mode: a second, melodic studio for trance, progressive house and melodic breaks, with 17 more examples.
  • Play together: live sessions for one host and up to seven guests. Guests edit; audio plays only on the host's device.
  • Share and export: compressed track links, WAV export, Undo/Redo, and projects saved in your browser.
  • Phone-ready: multi-touch drawing, and tilt or move your phone to turn a knob.

Two studios

Switch between Grain and Fluff in the title bar. Each has its own sounds, effects, examples and look; the sequencers and your project carry over. Any track can also use the other studio's sounds.

Fluff mode: the same studio with a soft lilac theme and melodic examples

Instruments

Drum sequencer
Drums: paint steps across kick, snare, hat, clap and rim, each with eight automatable controls.
Acid bass pitch matrix
Acid bass: draw pitch, gate, accent and glide in scale.
Vocal sampler
Vocals: trim a sung or chopped sample and draw notes of any length.
Arpeggiator in Fluff mode
Arpeggiator: pick notes, order, rate and octaves, or follow the chord progression.
Cloud granular instrument
Cloud: drag to scan granular material and change pitch.
Tension string instrument
Tension: pull and release strings to strike tuned percussion.

On your phone

Grain on a phone    Fluff on a phone

Documentation

Development

Requires Node 22.12 or later.

npm install
npm run dev

npm test runs unit checks and npm run test:e2e runs browser checks (requires Chrome). See development for the code structure and deployment for release steps.

Made with AI

The code, documentation, example patterns and synthesized sounds in this repository were generated almost entirely by AI coding agents, directed by the author. They can contain errors.

Licence and credits

Original work in this repository is dedicated to the public domain under CC0 1.0, without warranty. Third-party material keeps its own terms:

  • Drum samples: the Sonic Pi sample library (recordings from freesound.org) and Virtuosity Drums by Versilian Studios and Karoryfer Samples, all CC0 1.0. Per-file sources
  • Vocal samples: Kenney's Voiceover Pack and Voiceover Pack (Fighter), performed by Giselle and Jeffrey M. Smith, and Producer Space's Soulful House Vocals, Euphoric Trance Vocals and Dance Vocal Shouts, all CC0 1.0. Credits · Licences
  • Typeface: IBM Plex Mono, SIL Open Font License 1.1.
  • Icons: Lucide, ISC licence, with portions from Feather under the MIT licence.
  • Wordmark: the GRAIN wordmark is traced from a reference lettering image and is outside the dedication. Title reference
  • Title-font studies: cuts 21–30 in design/title-font-studies/ derive from other typefaces and stay under the SIL Open Font License 1.1. Credits
  • npm dependencies keep their own licences.

About

Drum machine and synth studio in the browser: drums, 303-style acid bass, arpeggiator, chord pads, vocal sampler, granular and string instruments, with live shared sessions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages