Files
serumalt/Source/Presets/AGENT.md
T
biggy 05fd6440bd docs: add agent guidance and historical audit report
Add root AGENT.md with project conventions, build verification steps,
source layout, style rules, and real-time/concurrency requirements.
Add per-module AGENT.md files for each existing and proposed source
subdirectory. Add AUDIT_REPORT.md as a historical Phase 1 snapshot
documenting memory management, error handling, concurrency model,
naming conventions, and anti-pattern catalog.
2026-09-09 13:25:02 +02:00

948 B

presets module

Owned files

  • FactoryPresets.h
  • FactoryPresets.cpp

Rules

  • Build presets as sparse maps; unset parameters keep their APVTS defaults.
  • Use ids:: for every parameter ID, never raw strings.
  • Use named helpers (coarse, unison, slope, fx, lfoShape, mod) to build normalized values.
  • Return the preset list as const std::vector<FactoryPreset>& from a static local.
  • Reference ModConnection and macro assignment structs instead of ad hoc tuples.

IF-THEN

  • IF a preset omits a parameter THEN leave it at its default; do not write an explicit zero.
  • IF a preset sets a physical value THEN encode it through the same maps:: helpers the DSP uses.

Examples

// BAD: raw string ID and an opaque normalized number
pr.params = { { "oscAUnison", 0.4f } };
// GOOD: ids:: and a named helper
pr.params = { p (ids::oscAUnison, unison (7)) };

This file overrides /AGENT.md where they conflict.