How eli7vh/felucca works
WaveLoop Kit/Felucca is standalone multi-engine synthesizer firmware for the M-VAVE FM-1, with MiniLab 3 MIDI control, on-device sequencing and editing, persistent projects and presets, USB/MIDI, browser emulation, and firmware update support. The main workflow is panel or MIDI input into performance and sequencing controls, which select engine voices and effects for audio output; UI drawing presents device state. Persistence and browser/update paths are separate supporting branches. Some subsystem links are documented in the README; unsampled implementation details are not inferred.
Main entry points: ui.c Device UI · engines.c Engine selection · main.c Firmware runtime · felucca_web.c Browser emulator
Components 30
Panel and UI
- Panel input
firmware/hal/fm1_input.h - Device UI
firmware/src/ui.c - UI input
firmware/src/ui_input.c - UI drawing
firmware/src/ui_draw.c - UI graphs
firmware/src/ui_graph.c - Quick layers
firmware/src/ui_layer.c - Settings menu
firmware/src/ui_menu.c - Firmware runtime
firmware/src/main.c
Performance and sound
- Sequencer and songs
firmware/src/seq.c - Keys and chords
firmware/src/perform.c - Modulation
firmware/src/mod.c - Engine selection
firmware/src/engines.c - FM6 engine
firmware/src/eng_fm6.c - FM6 synthesis core
firmware/src/fm6_core.c - Grain engine
firmware/src/eng_grain.c - Slice engine
firmware/src/eng_slice.c - Drum voices
firmware/src/drum_voice.c - Audio rendering
firmware/src/audio.c - Effects
firmware/src/fx.c
Projects and persistence
- Projects and presets
firmware/src/project.c - Persistent storage
firmware/src/storage.c
USB and browser
- USB and MIDI
firmware/src/usb.c - TRS MIDI
firmware/src/midi_uart.c - Browser emulator
web/emu/felucca_web.c - Audio worklet
web/emu/worklet.js - Web backup
web/fm1backup.js - Web updater
web/fm1ota.js - Device update loader
firmware/loader/loader.c - Update image writer
firmware/loader/ldr_core.c
Other components
- Player / MIDI controller
Connections 31
- Player / MIDI controller → Panel input: plays controls
- Panel input → UI input: scans input
- UI input → Device UI: dispatches actions
- Device UI → UI drawing: renders screens
- Device UI → UI graphs: shows graphs
- Device UI → Quick layers: opens layers
- Device UI → Settings menu: opens settings
- Firmware runtime → Device UI: runs interface
- Player / MIDI controller → Sequencer and songs: records patterns
- Player / MIDI controller → Keys and chords: plays notes
- Player / MIDI controller → Modulation: controls parameters
- Sequencer and songs → Engine selection: selects track sound
- Keys and chords → Engine selection: triggers sound
- Engine selection → FM6 engine: dispatches engines
firmware/src/engines.c - Engine selection → Grain engine: dispatches engines
firmware/src/engines.c - Engine selection → Slice engine: dispatches engines
firmware/src/engines.c - Engine selection → Drum voices: dispatches drums
firmware/src/engines.c - FM6 engine → FM6 synthesis core: uses synthesis core
firmware/src/eng_fm6.c - Engine selection → Audio rendering: renders tracks
- Audio rendering → Effects: processes effects
- Device UI → Projects and presets: edits presets
- Projects and presets → Persistent storage: loads and saves
- Firmware runtime → Persistent storage: boots persistence
- Player / MIDI controller → USB and MIDI: sends MIDI
- Player / MIDI controller → TRS MIDI: sends TRS MIDI
- Browser emulator → Audio worklet: runs audio in
- Browser emulator → Firmware runtime: runs firmware
web/emu/felucca_web.c - Player / MIDI controller → Web backup: backs up device
- Player / MIDI controller → Web updater: starts update
- Web updater → Device update loader: transfers firmware
- Device update loader → Update image writer: writes image
firmware/loader/loader.c