madderscientist/noteDigger

在线前端频谱分析扒谱 front-end music transcription

What it solves

NoteDigger solves the problem of manually transcribing music from an audio recording into MIDI notes — a process often called “扒谱” (score extraction). It provides a fast, lightweight browser-based workspace where you can import an audio or video file, view its spectrogram, and draw notes on a piano-roll-style interface. It also helps align notes to beats and bars, export a clean MIDI file suitable for scoring, and optionally use a built-in neural network to generate a rough transcription as a starting point.

How it works

It is a pure front-end application: no frameworks, no external libraries, and no server. You open the HTML file (or use the online version) in a modern browser, import audio via file picker or drag-and-drop, and choose an analysis method (STFT or CQT). The app computes the spectrogram and displays it alongside a piano keyboard and timeline. You then draw notes directly on the spectrogram, adjust their positions and durations, and use the bar lines to set tempo and beat alignment. A built-in MIDI player lets you hear the result, and you can export either a project file (.nd) or a standard MIDI file. Optional features include auto-rhythm detection, harmonic removal, key detection, chord recognition, and two neural-network-based transcription models (timbre-agnostic and timbre-separating) that run in a worker thread. The design keeps the timeline in seconds for flexible note placement, and applies a quantization algorithm when exporting MIDI to align notes to a music-theory grid.

Who it’s for

It is aimed at musicians, hobbyists, or anyone who wants to transcribe a song by ear directly from audio without installing heavyweight desktop software. It is also useful for people who want to learn how spectrogram analysis and MIDI editing work, since the code is intentionally simple and dependency-free.

Highlights

  • Double-click to use: just open the HTML file in a browser, no install or backend needed
  • Pure front-end with no frameworks or external libraries, keeping the project small and auditable
  • Supports importing common audio and video formats (MP3, WAV, MP4, MOV, etc.) and exports standard MIDI
  • Spectrogram analysis with optional GPU-accelerated STFT and CQT, plus automatic rhythm, key, and chord detection
  • Includes neural-network-based transcription models that run locally in the browser
  • Offers beat-snapping with dynamic quantization for clean MIDI exports, plus a full set of keyboard shortcuts for efficient editing

Related

  • Project
  • Project
  • Project
  • Project
  • Project