GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - thefirebanks/harmony-lab

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
playwright-report
playwright-report
 
 
public
public
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CLAUDE.md
CLAUDE.md
 
 
README.md
README.md
 
 
bun.lock
bun.lock
 
 
bunfig.toml
bunfig.toml
 
 
eslint.config.mjs
eslint.config.mjs
 
 
next.config.ts
next.config.ts
 
 
open-next.config.ts
open-next.config.ts
 
 
opencode.jsonc
opencode.jsonc
 
 
package.json
package.json
 
 
playwright.config.ts
playwright.config.ts
 
 
postcss.config.mjs
postcss.config.mjs
 
 
tsconfig.json
tsconfig.json
 
 
wrangler.toml
wrangler.toml
 
 

Repository files navigation

Harmony Lab

A personal platform for music practice games, designed to build functional harmony intuition through focused, beautiful, non-gamified exercises.

Current Game: Tonic Target Practice

The Problem: Musicians with perfect pitch often process harmony through absolute note identification, then calculate intervals/function. This is slow and doesn't build intuition.

The Solution: Rapid, randomized progression drills that make absolute pitch useless (because the key changes constantly) and reinforce the feeling of the progression.

Game Flow

  1. App displays a random key and target degree (I or vii)
  2. User hears the tonic chord as reference
  3. User selects three chords to build the progression
  4. App plays back their selection
  5. Feedback: correct/incorrect with visual + audio confirmation
  6. Repeat in a new random key

Tech Stack

Layer Technology
Runtime Bun
Framework Next.js 14 (App Router)
Language TypeScript (strict mode)
Styling Tailwind CSS
Audio Tone.js + Salamander Piano Samples
State Zustand

Getting Started

# Install dependencies
bun install

# Run development server
bun dev

# Build for production
bun run build

# Run tests
bun test

Open http://localhost:3000 to see the app.

Project Structure

src/
├── app/                    # Next.js App Router pages
│   ├── games/
│   │   └── tonic-target/   # Tonic Target game page
│   └── page.tsx            # Home page
├── components/
│   ├── ui/                 # Shared UI primitives (Button, Card)
│   ├── shared/             # Platform-wide components (GameShell, TheoryCard)
│   └── games/
│       └── tonic-target/   # Game-specific components
├── lib/
│   ├── music/              # Music theory primitives (scales, chords, keys)
│   ├── audio/              # Tone.js audio engine
│   └── game-engine/        # Generic game types
├── games/
│   └── tonic-target/       # Game logic, config, types
├── stores/                 # Zustand stores
└── hooks/                  # Custom React hooks

Architecture

The platform is designed to support multiple music practice games sharing:

  • Music Theory Core (lib/music/): Pure functions for scales, chords, progressions
  • Audio Engine (lib/audio/): Tone.js wrapper for chord/progression playback
  • UI Components (components/shared/): Reusable game UI elements

Keyboard Shortcuts

Key Action
Space Submit answer / Next round
1-7 Select chord by degree
R Hear tonic reference
P Play current selection
Backspace Clear last selection

Difficulty Levels

Level Key Shown Chord Display Colors Auto Tonic
1 Yes Names (Dm7) Yes Yes
2 Yes Names + Degrees Yes Yes
3 Yes Degrees only (ii7) Yes Yes
4 Yes Degrees only No Yes
5 No Degrees only No No

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.