How asb2m10/dexed works
Main Components
• Synth Engine – The core FM synthesis engine is implemented in the Source folder. It is split into at least two engines (EngineMkI.cpp/h and EngineOpl.cpp/h) along with supporting DSP modules and synergy with msfa (found in Source/msfa). This engine handles synthesis processing and sound generation.
• UI & Editor Components – Files like PluginEditor.cpp/h, GlobalEditor, OperatorEditor, and Parameter dialogs indicate that the user interface is a layered set of controls that interact with the synthesis engine.
• MIDI/Sysex Communication – The presence of SysexComm.cpp/h, Cartridge and tuning managers, and related UI components explicitly deals with MIDI message handling and sysex integration.
• Build System & Deployment Scripts – The cmake files (CMakeLists.txt in root and within subdirectories), installer scripts (in Resources/Installers and scripts/ directory), and GitHub Actions workflows indicate a robust build and deployment pipeline across platforms (Linux, macOS, and Windows).
Relationships and Interactions
• Inside PluginProcessor (and related files like PluginData and PluginParam), indicate the data flow toward lower-level DSP and synthesis functions (EngineMkI, EngineOpl, and the msfa modules such as fm_core, op_kernel, etc.).
• Communication path for MIDI/Sysex processing flowing from input (MIDI controllers), to SysexComm, and then to update components in the synth engine.
Architectural Patterns and Design Principles
• Separation of Concerns: Distinguish clearly between the UI layer (editors, skins, and dialogs) and the synthesis engine (DSP, sound generation, and midi processing). Each main folder (Source for core C++ implementation, Resources for UI assets, Documentation, and Installer scripts) should be shown as a distinct layer.
• Modular Design: Emphasize the use of submodules/libraries hosted in the libs directory and the clear modularization inside the Source directory (e.g., separate files for different editor components, algorithm display, parameter handling, etc.).
• Build & Cross-Platform Abstraction: Note the use of CMake as the primary build system along with platform-specific installer scripts in the Resources/Installers and scripts directories.
Following Specific Technologies/Frameworks
• JUCE – powering both the plugin wrapper and the GUI.
• msfa – powering core FM synthesis functionality.
• CMake – as the build configuration system.
• VST3, CLAP, AU – plugin APIs that the project supports, based upon integration in the build system and folders in the libs directory.
• External installer scripts and shell scripts that manage packaging and versioning.
Elements That Must Be Present
• Clear labels for each architectural module (UI Layer, Audio Processing Engine, MIDI/Sysex Manager, Build and Deployment Infrastructure).