{"id":50622168,"url":"https://github.com/champi-dev/looper_vue","last_synced_at":"2026-06-06T13:02:03.407Z","repository":{"id":356001560,"uuid":"1226432533","full_name":"champi-dev/looper_vue","owner":"champi-dev","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-06T06:52:58.000Z","size":221,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-06T08:39:16.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/champi-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-01T11:46:09.000Z","updated_at":"2026-05-06T06:53:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/champi-dev/looper_vue","commit_stats":null,"previous_names":["champi-dev/looper_vue"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/champi-dev/looper_vue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/champi-dev%2Flooper_vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/champi-dev%2Flooper_vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/champi-dev%2Flooper_vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/champi-dev%2Flooper_vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/champi-dev","download_url":"https://codeload.github.com/champi-dev/looper_vue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/champi-dev%2Flooper_vue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33983046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-06T13:01:58.593Z","updated_at":"2026-06-06T13:02:03.395Z","avatar_url":"https://github.com/champi-dev.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StepLab\n\n\u003e A browser drum machine. Click squares, hear beats. Open a tab — done.\n\u003e **Vue 3 · TypeScript · Tone.js · Tailwind.**\n\n---\n\n## What is it?\n\nA pocket-sized music studio that lives in your browser. You build a 1-bar loop on a grid of 16 squares × 8 instruments (drums + synths), press play, and tweak it live. Save patterns, switch between them, watch the visualizer pulse.\n\nNo installs. No accounts. No backend.\n\n---\n\n## Highlights\n\n- **8 instruments × 16 steps** — kick, snare, hi-hats, clap, bass, lead, pad\n- **Per-track controls** — mute, solo, volume, pitch\n- **Tempo \u0026 swing** — 60–200 BPM, 0–50% swing\n- **Save / load** — patterns live in your browser, survive refresh\n- **Reactive visualizer** — colored spectrum that pulses with the beat\n- **Keyboard-friendly** — Space to play, 1–8 to mute, ? for help\n- **Drum samples synthesized from scratch** — zero third-party audio\n- **~1.5k lines of code, 100 KB gzipped**\n\n---\n\n## How it's wired\n\n```\n   ┌──────────────────────────────────────────────────────┐\n   │                       Browser tab                    │\n   │                                                      │\n   │   ┌──────────┐  click   ┌──────────┐   reads   ┌───┐ │\n   │   │  Vue UI  │ ───────▶ │  Pinia   │ ────────▶ │ T │ │\n   │   │  (grid)  │ ◀─────── │  store   │ ◀──────── │ o │ │\n   │   └──────────┘  render  └──────────┘  playhead │ n │ │\n   │                            │  ▲                │ e │ │\n   │                            ▼  │ hydrate        │ . │ │\n   │                       ┌─────────────┐          │ j │ │\n   │                       │localStorage │          │ s │ │\n   │                       └─────────────┘          └───┘ │\n   │                                                  │   │\n   │                                                  ▼   │\n   │                                           ◀))) audio │\n   └──────────────────────────────────────────────────────┘\n```\n\n**One sentence:** the Pinia store is the single source of truth — the UI reads from it, and Tone.js plays from it.\n\n---\n\n## What happens when you press Play\n\n```\n  Tone.Transport ticks every 16th note\n         │\n         ▼\n  for step 0..15 (looping):\n         │\n         ├─▶ for each track, is this step ON?\n         │       │\n         │       ├─▶ sample track? → trigger Tone.Player\n         │       └─▶ synth track?  → trigger Tone.Synth\n         │\n         └─▶ light up the playhead in the UI\n```\n\nSequenced via `Tone.Sequence` with sample-accurate scheduling — no `setTimeout`, no drift. The UI playhead is synced to the audio via `Tone.getDraw()`.\n\n---\n\n## Drum samples, made from math\n\nNo royalty samples, no big audio files in the repo. A small Node script (`scripts/generate-samples.mjs`) synthesizes each drum from raw DSP and writes a `.wav`:\n\n| Drum | Recipe |\n|---|---|\n| **Kick** | Sine sweep 110 → 45 Hz + click |\n| **Snare** | Two tones + white noise, high-passed |\n| **Hi-Hat** | White noise burst, fast decay |\n| **Clap** | Three quick noise bursts + tail |\n\nRun `npm run gen-samples` once and you have a complete drum kit.\n\n---\n\n## Tech stack\n\n| Layer | Choice |\n|---|---|\n| UI | **Vue 3** (Composition API, TypeScript) |\n| Build | **Vite** |\n| State | **Pinia** |\n| Audio | **Tone.js** (Web Audio API wrapper) |\n| Styling | **Tailwind CSS**, dark theme |\n| Persistence | **localStorage** (debounced, versioned schema) |\n| Visualizer | **Canvas 2D** (64-band FFT) |\n\n---\n\n## Keyboard\n\n| Key | Action |\n|---|---|\n| `Space` | Play / Stop |\n| `1`–`8` | Mute track |\n| `Shift`+`1`–`8` | Solo track |\n| `Ctrl`+`S` / `Ctrl`+`N` | Save / New pattern |\n| `?` | Help |\n\n---\n\n## Run it\n\n```bash\nnpm install\nnpm run gen-samples   # synthesize drum WAVs\nnpm run dev           # http://localhost:5173\n```\n\n---\n\n## On purpose, not in scope\n\nNo MIDI export, no song mode, no effects, no sample upload, no cloud sync.\n**One polished loop, well done.**\n\n---\n\nMIT licensed. Drums synthesized from scratch — no attribution required.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchampi-dev%2Flooper_vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchampi-dev%2Flooper_vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchampi-dev%2Flooper_vue/lists"}