How th3paypal/real_time_note_decoder works
This is a single-file polyphonic audio-to-sheet-music application. Its main workflow trains a note detector from audio/MIDI datasets, captures live audio, converts detected pitches into MIDI notes, and invokes external tools to generate sheet music. The graph separates data preparation, model and processing, and output stages; several internal calls are visible in the excerpt, while omitted code limits claims about training orchestration and visualization wiring.
Main entry points: note_detector.py Audio Processor
Components 14
Training Data
- Audio Dataset
note_detector.py - Audio Features
note_detector.py - Model Evaluation
note_detector.py
Detection and Recording
- Application Entry
note_detector.py - Note Detector
note_detector.py - Audio Processor
note_detector.py
Music Output
- Detected Notes
note_detector.py - Note Visualization
note_detector.py - MIDI Export
note_detector.py - Sheet Conversion
note_detector.py - Sheet Music PDF
Other components
- User
- Audio Input
- midi2ly and LilyPond
Connections 13
- User → Application Entry: starts
note_detector.py - Application Entry → Audio Processor: creates
note_detector.py - Application Entry → Audio Processor: trains
note_detector.py - Application Entry → Audio Processor: starts recording
note_detector.py - Audio Dataset → Audio Features: extracts
note_detector.py - Audio Processor → Note Detector: runs inference
note_detector.py - Audio Processor → Detected Notes: converts predictions
note_detector.py - Audio Input → Audio Processor: streams audio
note_detector.py - Audio Processor → Note Visualization: visualizes
note_detector.py - Audio Processor → MIDI Export: writes
note_detector.py - Audio Processor → Sheet Conversion: invokes
note_detector.py - Sheet Conversion → midi2ly and LilyPond: converts
note_detector.py - midi2ly and LilyPond → Sheet Music PDF: generates