Finding the notes
Until now the engine was handed the exact notes. Here it finds them itself, using Spotify's basic-pitch model
(ported to Rust, running locally) plus DSP refinement. Then it makes the same edits. If the detected versions sound like
the known-note versions, detection isn't the weak link.
What I need from you
- Flip between Known notes and Detected + refinement. Can you hear a difference, especially a ghost of the old note near the end of the edited chord?
- Look at the amber notes on each roll. Those are notes the detector heard that probably aren't there (an octave away from a stronger real note). In the app they'd show faded, for you to confirm or delete. Does that seem like the right behavior?
True note (answer key)
Detected note
Suspected octave error
Moved note: span the engine used
Loading results…
What changed from the reference basic-pitch
- Windows are cross-faded, not cut. The model reads 2-second windows. The reference pipeline concatenates them, and every seam produced an onset spike: false notes exactly at each window boundary. Overlaps are now blended on a shared frame grid.
- The last window ends at the end of the audio. The model normalizes loudness per window, so a final window that's mostly silence made a decaying tail look loud and invented notes there.
- Onsets snap to the real attack. The model's grid is 11.6 ms. Snapping to the steepest energy rise brings the median error to 0.4 ms, which matters because the engine only edits inside a note's lifetime.
- Offsets extend to where the note actually fades. The model's "note on" activation ends 0.4–1.1 s before the note stops ringing. Offsets now follow the note's own partial until it's 50 dB down.
- Octave errors are flagged, not deleted. Every false note was an octave above or below a stronger real note. Real octaves played softly look similar to the model, so deleting them would also remove music. Flagged notes are left out of the engine's energy split, so they can't steal the moved note's partials.
Next: checkpoint 3
Real recordings: a strummed acoustic guitar (GuitarSet), a four-part choir (Choral Singing Dataset), and a synth pad with reverb. That's where room sound, strums and reverb tails test the whole pipeline.