Add harmonic bank DSL surface

This commit is contained in:
Meta Vens 2026-05-14 20:36:06 +01:00
commit 9714913407
11 changed files with 187 additions and 23 deletions

View file

@ -120,9 +120,10 @@ First deliverable:
effects.
- Rebuild one additive lead, one PAD texture, and one formant/vocal patch. The
first rebuild catalog entries now parse/export and record the first Zyn
missing abstractions: additive harmonic-bank syntax, PAD-style spectral
source generation, free envelopes for normal voices, named kit/layer routing,
and richer formant/vowel morphing.
missing abstractions. Named layers and additive harmonic-bank syntax now
exist; PAD-style spectral source generation, free envelopes for normal
voices, fuller kit/effect routing, and richer formant/vowel morphing remain
pressure.
Do not vendor the upstream Zyn instrument-bank submodule until its preset
license/provenance is explicit enough for this repo. Use project-authored
@ -140,6 +141,13 @@ label while lowering to ordinary Aquarium voices. It is intentionally only an
ownership/routing scaffold for now; it does not add PAD synthesis, free
envelopes, or effect buses by stealth.
The second response is `harmonics`: additive layers can declare ratio/gain
partial banks such as `harmonics layer=body root=220
partials=1:.16,2:.075`. The parser preserves the bank as authored structure
and lowers it to ordinary voices. This gives additive lead, drawbar, and future
partial-bank targets a reusable surface without pretending to implement Zyn
ADDsynth phase, bandwidth, or free-envelope details.
Sources:
- [ZynAddSubFX](https://github.com/zynaddsubfx/zynaddsubfx)

View file

@ -62,7 +62,7 @@ engines. A named layer surface would give additive banks, PAD sources, free
envelopes, and formant motion somewhere coherent to live later. Without it, the
next abstractions risk becoming loose fields on anonymous voices.
## First Response
## First Responses
Aquarium now has a minimal `layer` command:
@ -74,3 +74,15 @@ voice layer=pad_low freq=130.8128
The layer owns source identity and metadata while current lowering still emits
ordinary voices. This is the scaffold needed before promoting PAD sources,
additive harmonic banks, free envelopes, or richer formant motion.
Additive layers now also have a `harmonics` command:
```text
layer name=body engine=add gain=.16
harmonics layer=body root=220 partials=1:.16,2:.075,3:.045
```
The harmonic bank records authored additive partial intent under a named layer,
then lowers to ordinary sine voices. It does not claim Zyn ADDsynth's full
oscillator table: phase, bandwidth, oscillator shaping, and exact free-envelope
behavior remain separate pressure.