Repository navigation
Diagrams
This page describes the architecture currently implemented in the repository. The diagrams use Mermaid, which GitHub Wiki renders natively.
VSTProfiler is a C++20/JUCE guitar audio effect. It is loaded by a digital audio workstation (DAW) as a plug-in and can also be built as a standalone application. It models an amplifier chain using DSP parameters, a neural amp model, and a cabinet impulse response (IR).
flowchart LR
Guitarist["Guitarist"] -->|"plays / adjusts controls"| DAW["DAW or host application"]
DAW -->|"audio stream + automation"| Plugin["VSTProfiler\naudio plug-in"]
Plugin -->|"processed audio"| DAW
DAW -->|"audio output"| Monitoring["Audio interface / speakers / headphones"]
Guitarist -->|"loads or exports"| Files["User files\nIR, amp model, profile"]
Files -->|".wav/.aiff/.flac\n.json/.nam/.txt\n.profilerprofile"| Plugin
Plugin -->|"profiles and preferences"| AppData["Application data\nAppData/Profiler"]
Developer["Contributor"] -->|"code, pull request"| GitHub["GitHub\nsource, actions, releases"]
GitHub -->|"build archives"| Guitarist
External actors and systems:
- The DAW provides audio buffers and saves the plug-in state in its sessions.
- The user provides IR and amp-model files; their paths are stored in profiles.
- GitHub Actions validates, builds, and publishes delivery artifacts.
flowchart TB
subgraph Host["JUCE host: VST3 / AU / Standalone"]
Processor["ProfilerAudioProcessor\nAudioProcessor"]
Editor["ProfilerAudioProcessorEditor\nAudioProcessorEditor"]
APVTS["AudioProcessorValueTreeState\nparameters and automation"]
end
subgraph UI["User interface"]
Tabs["CustomTabs"]
Clone["CloneView\nIR and model loading"]
Play["PlayView\ncontrols and export"]
Profile["ProfilView\ncreate, edit, import"]
Settings["SettingsView\ndisplay preferences"]
Modules["Modules and components\nEQ, sliders, forms, cards, notifications"]
end
subgraph Audio["Processing engine"]
Chain["JUCE DSP chain\nGain · Noise Gate · EQ"]
Neural["RTNeural\namplifier model"]
DC["DC-blocking filter"]
IR["JUCE Convolution\nimpulse response"]
Master["Master gain and RMS meter"]
end
subgraph Storage["Persistence"]
PM["ProfileManager"]
Profiles["*.profilerprofile\nJSON, UUID identifier"]
Preferences["play_view_settings.json\nUI preferences"]
end
Editor --> Tabs
Tabs --> Clone & Play & Profile & Settings
Clone & Play & Profile --> Modules
Modules -->|"parameter attachments"| APVTS
Editor --> Processor
APVTS --> Processor
Processor --> Chain --> Neural --> DC --> IR --> Master
Processor <--> PM
PM <--> Profiles
PM <--> Preferences
Settings --> Preferences
Clone -->|"external files"| Processor
| Component | Responsibility |
|---|---|
ProfilerAudioProcessor |
Plug-in lifecycle, real-time DSP, IR/amp-file loading, and APVTS state storage. |
ProfileManager |
Reads, validates, creates, updates, imports, and exports profiles. |
ProfilerAudioProcessorEditor |
Plug-in window and navigation between views. |
CloneView / FileAssetsModule
|
Selects and removes IR assets and amplifier models. |
PlayView |
Playback controls, EQ, volume, creation, and export of the current profile. |
ProfilView |
Profile catalog, creation, editing, deletion, and import. |
SettingsView |
Persistent visual preferences. |
The following processing runs for every audio block. Optional steps are skipped when their resource or setting is inactive.
flowchart LR
In["DAW input\nmono or stereo"] --> Mute{"Mute?"}
Mute -->|"yes"| Silence["Clears the buffer"] --> Out["Output to the DAW"]
Mute -->|"no"| Params["Reads APVTS parameters"]
Params --> Pre["Input gain\nNoise Gate\nDepth/Bass/Mid/Treble/Presence EQ"]
Pre --> Amp{"RTNeural model\nloaded?"}
Amp -->|"yes"| NN["Sample-by-sample inference\nleft channel, then stereo copy"]
Amp -->|"no"| DC
NN --> DC["35 Hz high-pass filter\nremoves DC offset"]
DC --> Cabinet{"IR loaded?"}
Cabinet -->|"yes"| Conv["IR convolution\ncabinet emulation"]
Cabinet -->|"no"| Master
Conv --> Master["Master gain"]
Master --> RMS["Output RMS measurement"] --> Out
Note: the class owns an oversampler, but the currently executed processing path calls the RTNeural model directly. The diagram therefore reflects the current behavior and does not show an oversampling step.
sequenceDiagram
actor User
participant UI as Play / Profile views
participant PM as ProfileManager
participant Disk as AppData/Profiler
participant DSP as ProfilerAudioProcessor
participant Host as DAW
User->>UI: Creates, imports, or selects a profile
UI->>PM: create/update/import/applyProfile
PM->>Disk: Reads or writes a .profilerprofile JSON file
PM-->>UI: Validated profile list and values
UI->>DSP: Applies the selected profile
DSP->>DSP: Updates APVTS, IR, and amp model
DSP->>Host: Notifies parameter changes
Host->>DSP: Sends audio blocks
DSP-->>Host: Returns processed audio
A profile has a UUID identifier that is separate from its visible name. It contains metadata (id, name, dates), parameters and, when provided, the IR and amp-model paths. The last active profile is stored separately in play_view_settings.json.
flowchart TB
Source["GitHub repository\nCMake + C++20"] --> PR["Pull request"]
PR --> Names["Branch-name validation"]
PR --> Semantic["Semantic-title validation"]
PR --> Lint["clang-format"]
Lint --> Tests["Unit tests\nWindows x86, Windows ARM, Linux x86"]
Lint --> Builds["Release build\nWindows x86, Windows ARM, Linux x86"]
Tests -. "continue-on-error" .-> Builds
Builds --> Artifacts["GitHub Actions artifacts"]
MainPush{"Direct push to Main?"}
Builds --> MainPush
MainPush -->|"yes"| Release["ZIP/TAR.GZ archives\nversioned GitHub Release"]
MainPush -->|"no"| Keep["Artifacts retained\nfor 14 days"]
Release --> Users["Windows/Linux users"]
CMake declares the AU, VST3, and Standalone formats. The current CI matrix covers Windows x86, Windows ARM, and Linux x86; it does not build macOS. Automated releases are published only after a push to Main, with a tag of the form vYYYY.MM.DD-run-number.
flowchart LR
Main["Main\nrelease branch"]
Dev["Dev\nintegration branch"]
CICD["CICD\nCI-monitored branch"]
Feature["feat/short-name"]
Fix["fix/short-name"]
Docs["docs/short-name"]
Other["poc/… or chore/…"]
Main -->|"development baseline"| Dev
Dev --> Feature & Fix & Docs & Other
Feature & Fix & Docs & Other -->|"approved pull request"| Dev
Dev -->|"promotion / merge"| Main
Main -->|"direct push: release"| Release["vYYYY.MM.DD-N tag\npublished archives"]
CICD -. "pushes and PRs are checked" .-> CI["GitHub Actions"]
Dev -. "pushes and PRs are checked" .-> CI
Main -. "pushes and PRs are checked" .-> CI
- Pull requests trigger a branch-name check. The allowed format is
feat/,fix/,docs/,poc/, orchore/, followed by lowercase characters, digits,.,_, or-. - Pull-request titles must be semantic. The allowed types are
feat,fix,docs,chore, andrefactor. - Contributions require approval from at least one member of the founding team before merging.
- CI workflows monitor
Main,Dev, andCICD. Only a push toMainpublishes a release.
- Create a short branch from
Dev:feat/eq-presets,fix/ir-loading, ordocs/architecture. - Open a pull request, preferably as a draft for a significant change.
- Pass the branch-name, title, and formatting checks, then obtain PR approval.
- Merge into
Devfor integration. - Promote
DevtoMainto publish an automated release.
This sequence formalizes
Devas the integration branch andMainas the release branch, consistently with the repository branches and workflows. GitHub branch-protection rules take precedence if they differ.