How arduino-guay/esp32-ag_sinte works
This is an ESP32-based autonomous monophonic synthesizer. The user workflow is MIDI notes and physical controls → parameter and arpeggiator handling → voice, oscillator, envelope, and filter processing → I²S audio output. Separate branches cover the LCD menu, ADC controls, waveform tables, and configurable delay. Several runtime files are unsampled, so their connections are shown as unverified rather than asserted; documented capabilities are retained.
Main entry points: AG_Menu.cpp LCD menu · AG_Midi.h MIDI routing · AG_Voz.cpp Synth voices · AG_Param.cpp Sound parameters
Components 20
Controls and Input
- Synth runtime
AG_Sinte.ino - ADC controls
AG_ADC.cpp - LCD menu
AG_Menu.cpp - Sound parameters
AG_Param.cpp
Note Handling
- MIDI routing
AG_Midi.h - Arpeggiator
AG_Arpegiador.cpp
Sound Generation
- Synth engine
AG_Sintetizador.cpp - Synth voices
AG_Voz.cpp - Oscillators
AG_Oscilador.cpp - Waveform tables
AG_Wavetable.cpp - AKWF samples
AG_AKWF.hpp - Signal utilities
AG_Util.cpp - ADSR envelopes
ADSR.cpp - Filters
AG_Filtro.cpp
Audio Output
- Configurable delay
simple_delay.ino - I²S output
i2s_interface.ino
Other components
- Player
- Encoder and pots
- MIDI input
- I²S DAC
Connections 24
- Player → MIDI input: sends notes
readme.md - MIDI input → MIDI routing: delivers MIDI
readme.md - Encoder and pots → ADC controls: provides controls
readme.md - Encoder and pots → LCD menu: operates menu
AG_Menu.cpp - Synth runtime → LCD menu: services controls
- LCD menu → Sound parameters: sets parameters
AG_Menu.cpp - LCD menu → Arpeggiator: sets arpeggio
AG_Menu.cpp - LCD menu → MIDI routing: sets mode
AG_Menu.cpp - MIDI routing → Synth engine: dispatches notes
AG_Midi.h - MIDI routing → Arpeggiator: dispatches notes
AG_Midi.h - MIDI routing → Sound parameters: updates controls
AG_Midi.h - Arpeggiator → Synth engine: triggers notes
- Synth engine → Synth voices: processes voices
- Synth voices → Oscillators: generates tones
- Synth voices → Filters: filters voices
- Synth voices → ADSR envelopes: shapes volume
- Sound parameters → Oscillators: selects waveforms
- Sound parameters → Filters: configures filters
- Oscillators → Waveform tables: reads waveform
- Waveform tables → Signal utilities: uses signal functions
- Signal utilities → AKWF samples: reads samples
AG_Util.cpp - Synth engine → Configurable delay: processes audio
- Configurable delay → I²S output: outputs audio
- I²S output → I²S DAC: sends audio
readme.md