How mattromano/feedback-desktop works
feedBack is an Electron desktop rhythm game expanded for Rock Band/Guitar Hero-style band play, alongside real-instrument play. The documented flow is: choose solo or band play, configure players and inputs, select a playable song, confirm parts and difficulty, then play and review results. The graph also shows desktop/audio infrastructure and plugin support. Game modes and several subsystems are documented but not represented by sampled implementation excerpts; those links rely on the README or are omitted where wiring is unclear.
Main entry points: main.ts Electron main · AudioEngine.cpp Audio engine · SandboxedProcessor.cpp Sandbox processor · audio-bridge.ts Audio bridge
Components 24
Play experience
- Play screens
src/renderer/screen.js - Band setup
src/renderer/screen.js - Song library
src/renderer/screen.js - Instrument modes
src/renderer/screen.js - Scoring and results
src/renderer/screen.js
Desktop services
- Electron main
src/main/main.ts - Audio bridge
src/main/audio-bridge.ts - Python server process
src/main/python.ts - Plugin manager
src/main/plugin-manager.ts - Soundfont manager
src/main/soundfont-manager.ts - Desktop settings
src/main/desktop-config.ts - App updater
src/main/update-manager.ts
Audio runtime
- Native audio addon
src/audio/addon/AddonContext.cpp - Audio engine
src/audio/AudioEngine.cpp - Device setup
src/audio/engine/DeviceSetup.cpp - Signal chain
src/audio/SignalChain.cpp - Note detection
src/audio/PitchDetector.cpp
Plugin audio
- VST host
src/audio/VSTHost.cpp - Sandbox processor
src/audio/Sandbox/SandboxedProcessor.cpp - Sandbox protocol
src/audio/Sandbox/Protocol.h - Audio channel
src/audio/Sandbox/AudioChannel.h - Control channel
src/audio/Sandbox/ControlChannel.h - VST host process
src/vst-host/main.cpp
Other components
- Player
Connections 28
- Player → Play screens: chooses play
- Play screens → Band setup: starts band
src/renderer/screen.js - Band setup → Song library: opens pick mode
src/renderer/screen.js - Song library → Instrument modes: selects song
src/renderer/screen.js - Instrument modes → Scoring and results: plays and scores
src/renderer/screen.js - Electron main → Python server process: starts and awaits
src/main/main.ts - Electron main → Audio bridge: initializes
src/main/main.ts - Electron main → Plugin manager: initializes
src/main/main.ts - Electron main → Soundfont manager: initializes
src/main/main.ts - Electron main → Desktop settings: uses settings
src/main/main.ts - Electron main → App updater: initializes
src/main/main.ts - Audio bridge → Native audio addon: invokes
src/main/audio-bridge.ts - Audio bridge → Desktop settings: reads settings
src/main/audio-bridge.ts - Plugin manager → Python server process: restarts after changes
src/main/plugin-manager.ts - Soundfont manager → Desktop settings: reads and writes
src/main/soundfont-manager.ts - Soundfont manager → Python server process: restarts after change
src/main/soundfont-manager.ts - Native audio addon → Audio engine: owns engine
- Audio engine → Device setup: configures devices
- Audio engine → Signal chain: processes sources
- Audio engine → Note detection: enables detection
src/audio/AudioEngine.cpp - Signal chain → Sandbox processor: uses processor
src/audio/SignalChain.cpp - Native audio addon → VST host: owns host
- VST host → Sandbox processor: loads out of process
- Sandbox processor → Control channel: sends control
src/audio/Sandbox/SandboxedProcessor.cpp - Sandbox processor → Audio channel: transfers audio
src/audio/Sandbox/SandboxedProcessor.cpp - Control channel → Sandbox protocol: uses wire format
src/audio/Sandbox/ControlChannel.h - Audio channel → Sandbox protocol: uses wire format
src/audio/Sandbox/AudioChannel.h - VST host process → Sandbox protocol: implements protocol
src/vst-host/main.cpp