How zaneh/piano-trainer works
Main Components
a. Frontend Layer (React):
• User Interface Components (ScreenManager, Quiz, Trainer, Keyboard)
• Provider Components (KV, Soundfont, Trainer, Sidebar)
• Internationalization (i18n)
• Utils (scales, modes, MIDI handling)
b. Backend Layer (Tauri/Rust):
• MIDI Device Integration
• Native System Integration
• Cross-platform Features
c. External Dependencies:
• MIDI Devices
• Soundfont System
• File System (for settings/configuration)
Component Relationships
• Data flow between Providers and UI Components
• User input flow from Keyboard/MIDI to Trainer/Quiz components
• Sound output flow from Soundfont Provider to system audio
Specific Implementation Details
a. State Management:
• Provider components (KV, Sidebar, Trainer, Soundfont)
• Their relationships with UI components
b. User Interface Flow:
• ScreenManager coordination with other components
• Quiz and Trainer interaction patterns
• Settings management through SettingsSidebar
Technical Stack Indicators
Technology labels:
• React/TypeScript (Frontend)
• Tauri/Rust (Backend)
• MIDI Protocol
• Soundfont Technology
• i18n (Multiple language support)