← Back to Projects

Count Coach

Dance practice tool: scrub a waveform, get BPM for that section, keep rehearsing.

2025–2026 · Shipped

  • Next.js
  • WaveSurfer
  • Librosa
  • Python
  • Vercel

Key outcomes

  • Waveform region select tied straight to analysis
  • Server-side tempo so the practice UI stays light
  • Colab prototype to a deployed app I still use

Project overview

Count Coach, photo 1

Pick a region on a waveform, get tempo back, keep practicing. Thin web UI, analysis on the server.

System architecture

Count Coach, photo 2

Audio → region select → analysis API → BPM/metrics → UI overlay.

Waveform UI
WaveSurfer selection bound to analysis requests.
Tempo analysis
Server-side Librosa-style BPM inference on the selected segment.
Practice loop
Overlay guidance for targeted repetition.

Engineering decisions

DecisionAlternativeWhy
Server-side tempo analysisFully client-sideServer analysis with a thin Next.js client.

Results and future work

Shipped practice tool. Used for personal dance rehearsal with waveform-linked BPM analysis.

Still open. Niche UX; not a full studio suite.

  • Movement-aware cues.
Full engineering log

Motivation

Why I started this

What pulled me in, and what I wanted to get better at.

Why I built it

Rehearsal time kept disappearing into 'where's that count' and 'what's the BPM of this section.'

What interested me

If the waveform selection and the analyzer disagree on boundaries, dancers think the tempo tool is broken.

What I wanted to learn

I moved a Colab prototype into a deployed Next.js app with Python analysis so I could use it in real practice.

System Overview

How the system fits together

Pick a region on a waveform, get tempo back, keep practicing. Thin web UI, analysis on the server.

01

Waveform UI

WaveSurfer selection bound to analysis requests.

02

Tempo analysis

Server-side Librosa-style BPM inference on the selected segment.

03

Practice loop

Overlay guidance for targeted repetition.

Data flow

Audio → region select → analysis API → BPM/metrics → UI overlay.

Engineering Breakdown

Broken down by discipline

Each block is the requirement, how that part works, what I checked, and what is still open.

01Signal × Interface

Signal × Interface

Goal

Make tempo tools feel immediate during rehearsal.

Design

Waveform selection posts segment metadata; backend returns practice metrics; UI stays minimal.

Challenges

  • Selection boundaries must match what the analyzer hears.
  • Latency kills rehearsal flow if every scrub blocks.

Iterations

  • Colab prototype
  • Deployed app
  • Selection/analysis boundary fixes

Final implementation

Shipped practice tool used personally for sectioned rehearsal.

Colab v1

The first notebook, installing librosa in Colab before the app existed.

Colab v2

The next notebook. It loads an audio file and runs a beat tracker.

Practice loop

The deployed page: select a region, get a tempo, keep practicing.

Key Design Decisions

Design decisions

DecisionAlternativeWhy
Server-side tempo analysisFully client-sideServer analysis with a thin Next.js client.
Notes on these decisions

Server-side tempo analysis

Where should Librosa-class work run?

Client keeps data local but fights package weight; server keeps UX light.

Server analysis with a thin Next.js client.

Results & Validation

What held up

What worked in the end, what I can show for it, and where it's still limited.

Shipped practice tool

live demo + demo video

Used for personal dance rehearsal with waveform-linked BPM analysis.

Limitations

  • Niche UX; not a full studio suite.
Bench notes

The longer design notes, the timeline, and the revisions. The sections above are the system and what I measured.

Evolution

How it got here

The steps I can put in order from the notes. A clip opens from its still.

  1. v1

    Colab

    Analysis prototype.

  2. v2

    Deployed

    Waveform UI + API path.

Reflection

Looking back

What surprised me, what I'd redo, and questions I'm still chewing on.

What surprised me

  • Boundary sync bugs felt like 'wrong BPM' to users.

What I would redesign

  • Richer loop controls.

Future improvements

  • Movement-aware cues.

Questions that emerged

  • How little UI can a serious practice tool get away with?

Notes

  • Niche tools win when they delete repeated friction.