Juanjo Gana
← Back to homeCase study

metronometal: teaching software to hear a guitar

♩ = 12017/19 ✓

The problem

Practising alone, a guitarist can't tell whether they are really in time or playing the technique right. A metronome keeps the beat, but it doesn't listen.

The solution

A web app that builds rhythms bar by bar, lets you play along through your own guitar, and listens: it detects each note and technique, compares it with what was expected and scores the take.

What made it hard, and how it was solved

  1. 01

    Hearing the guitar in real time

    Note and attack detection in the browser, including techniques such as hammer-ons and pull-offs.

  2. 02

    Sounding like a real amplifier

    A neural amp-modelling engine in C++, compiled to WebAssembly, so the same sound engine runs in the browser and in a desktop app.

  3. 03

    Latency

    Browsers add about 50 ms of delay, too much for a musician. A native companion app brings it down to about 5 ms while the web page stays in control.

  4. 04

    Seeing the hands

    Hand and fretboard tracking with on-device computer vision models, so nothing leaves the user's machine.

  5. 05

    Detecting technique with a trained model

    A classifier for bends, slides and vibrato, trained on public datasets and tested against hand-written rules on data it had never seen.

  6. 06

    Heavy AI without fixed costs

    Audio-to-notes transcription on a cloud GPU that switches on per request and off after two idle minutes.

Built with

  • React
  • JavaScript
  • C++
  • WebAssembly
  • Python
  • scikit-learn
  • MediaPipe
  • Three.js
  • Convex
  • Modal
  • Vercel

What it shows

Taking a fuzzy problem, breaking it into parts and choosing the right tool for each, from the browser to a GPU, while keeping running costs under control.