Skip to content

aselekoglu/lofi-gen

Repository files navigation

LoFi Vibe Generator

A small browser-based lo-fi chord and drum pattern generator built with Vite. It uses Tone.js for audio synthesis/sequencing and a rolling-number UI control for selecting chord degrees.

Features

  • Play/pause transport with BPM control.
  • Select musical key and chord degrees; preview/apply chord progressions.
  • Simple kick/snare step sequencer with adjustable subdivision.
  • Multiple synth presets (Tone Synths and a Rhodes sampler).

Getting Started

Prerequisites

  • Node.js 18+ and npm.

Install

npm install

Development

npm run dev

Then open the printed local URL (usually http://localhost:5173).

Note: Browsers require a user gesture to unlock audio. Click anywhere on the page to start audio.

Build

npm run build

Preview production build

npm run preview

Configuration

This project uses Vite environment variables for optional configuration flags. Create a .env file from .env.example and adjust values as needed.

Example:

VITE_DEBUG=false
VITE_FEATURE_ROLLER_MOMENTUM=true

Use in code with import.meta.env.VITE_DEBUG etc.

Architecture Overview

See docs/architecture.md for current architecture notes and docs/plan.md for the step-by-step improvement plan.

Contributing

  • Follow coding and style guidelines in .junie/guidelines.md.
  • Use clear, imperative commit messages.

License

TBD (see task list for adding LICENSE and related documents).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors