Instrument / Software / Architecture
Controls, screen and sound.
MicroPython reads the panel. Python maps inputs and serves the interface. C++ owns sound processing and recording.
| Component | Technology | Responsibility |
|---|---|---|
| Pico firmware | MicroPython | Scan pots, decode encoders and debounce buttons; JSON over USB serial. |
| Panel reader | Python | Read the Pico serial stream once and expose control state locally. |
| Instrument backend | Python | Control mapping, navigation, preset recipes and pot pickup. HTTP commands and SSE state for the interface. |
| Product interface | HTML / CSS / JavaScript | Menus and Canvas graphics on the Pi screen or in a browser. |
| Audio engine | C++17 / ALSA | Synth voices, filter and LFO, MIDI input, recording, four-layer playback and output. |
| Storage | WAV / MIDI / JSON | Background saving of audio, MIDI, patch metadata and layer state. |
| Startup | systemd / Python / shell | Start the instrument and display; detect audio-device changes. |
| Project website | Next.js / TypeScript | Documentation and build guides; independent of the instrument runtime. |
Control and display flow
Pico USB serial feeds the panel reader. The Python backend maps physical and browser inputs into commands, sent to C++ over local UDP. Engine state returns to Python and reaches the interface through Server-Sent Events.
The browser draws waveforms and calculates the spectrum from engine samples. Audio synthesis stays in C++. Yamaha MIDI goes directly to the engine through ALSA.
Who owns the values?
C++ validates, stores and applies the current sound parameters. Python owns navigation, control mapping, pot pickup and factory preset recipes. The interface displays the returned state.
Audio flow
The looper records the live sound before master volume. Existing layers and count-in are excluded from new takes. Recording and playback share the C++ sample clock; disk work runs outside audio rendering.
Shared platform, separate applications
SynthNerd is the running application. PedalNerd is planned as a separate processing and interface module, sharing audio-device handling, controls, storage and useful DSP components. Full-duplex capture and guitar processing still need implementing.
Browser audio monitoring is experimental and can stutter or lag. Direct USB audio is the current playing path.