# Technical Specifications

## 1. How the EP-2350 works (what this collection is built on)

From the official guide, teenage.engineering/guides/ep-2350 (guide v1.1.2):

- **One** `config.json` in the drive root, with top-level keys `name`, `samples`, and `presets`. Strict JSON: a syntax error stops the unit from starting.
- `presets`: exactly four slots (`pos` 0–3), selected with the orange button. The orange button also has a **no-effect position**. That's the clean setting 0 in this collection. It's built into the hardware, so no config can colour it.
- Each preset has a serial effect chain (`list`) processed in order, plus at most **one** `handle`, **one** `shake`, **one** `lfo`, and a `trigger`.
- Modulation addresses an effect by `row` (its zero-based index in `list`) and an exact `param` name. The handle sweeps its target from the base value toward base + `depth` as it moves from 0% to 100%. Negative depth inverts. The handle can also target the LFO, but the guide only documents `"target": "lfo", "param": "speed"`.
- LFO shapes: `sine`, `square`, `sawtooth`, `random`.
- `{ "effect": "SAMPLE" }` must be in every chain or samples are silent. Rows placed after it process the sample too.
- Once per chain: `DELAY`, `REVERB`, `HARMONY`, `SSB`.
- Samples: WAV, mono or stereo, 8/16/24-bit or 32-bit float, up to 96 kHz. Playmodes are `oneshot`, `hold`, and `startstop`. Total storage is about **1 MB**.

### Available effects (complete list)
| Effect | Parameters (range) |
|---|---|
| DELAY | time 0–1.1, echo, wet-level, dry-level, lowpass-cutoff, highpass-cutoff, cross-feed, balance (0–1) |
| DIST | amount 0–40, lowpass-cutoff, highpass-cutoff, mix (0–1) |
| HARMONY | dry-level 0–1, pitch 0.5–2.0 |
| LOWPASS / HIGHPASS | cutoff 0–1 |
| REVERB | dry-level, wet-level, time (0–1) |
| RING | frequency 0–20000, mix 0–1 |
| SSB | frequency −20000–20000 |
| SAMPLE | speed 0–4, pitch −24–24, level 0–1, balance 0–1 |
| EQUALISER | cutoff, Q, gain. **Not used:** the guide and the on-device readme disagree on the spelling. |

## 2. What the hardware cannot do, and what this collection does instead

| Requested | Limitation | Closest supported approach used |
|---|---|---|
| Compression (Tape Machine) | No compressor | DIST at low mix acts as gentle soft-clipping: peaks round off and the sound thickens like tape. |
| Bit-depth and sample-rate reduction (Dusty Sampler, Bit Crusher) | No bitcrusher or decimator | Band-limiting filters, plus DIST for quantisation-like grit, plus RING at a high carrier frequency. RING folds energy into inharmonic sidebands, which is how aliasing sounds. A `random` LFO steps the carrier to imitate sample-rate jitter. |
| Wow & flutter **depth** on the handle | The handle can't target LFO depth. Only `speed` is documented. | The handle sweeps wobble **rate**, from slow wow (0.6) to fast flutter (5.6). Depth is fixed at a tasteful level, and shake adds a deeper drag. |
| Buffer repeat and retrigger (Glitch Repeat) | No buffer or looper effect | Short DELAY (90 ms) with a **square** LFO on feedback, so repeats rhythmically catch and release. Shake jumps the delay time, which scrubs and pitch-glitches the repeats. |
| Phasing (Broken Stereo) | No phaser or chorus effect | A 12 ms DELAY with feedback makes a comb filter (flanger and phaser family). Cross-feed and an LFO on `balance` give stereo movement. Wet stays below dry for mono safety. |
| Handle controlling two things at once | One handle mapping per preset | Each FX picks the single most musical parameter. Secondary motion comes from the LFO. |

## 3. Assumptions to confirm on hardware

The guide doesn't specify these. The values were chosen to be safe under either reading:

1. **Depth units.** Treated as the parameter's own units, matching the guide's examples. Every base ± depth stays inside the legal range, and `tools/validate.py` enforces that.
2. **LFO polarity.** Validated as bipolar (± depth), the worst case. If it's unipolar, every sweep is simply smaller.
3. **DELAY `time` units.** Assumed to be seconds, since the range is 0–1.1. Slapback is set to 0.12.
4. **LFO `speed` units.** Assumed to be Hz-like, matching the guide's examples of 2.0 and 4.0.
5. **`trigger`.** Not explained in the guide. It's set to the SAMPLE row, following TE's "BAD RECEPTION" example, where `trigger` points at the SAMPLE row.

## 4. Full parameter sheet

### TAPE CULTURE (`Tape-Culture/fx-mic-disk/config.json`)

**FX1 TAPE MACHINE**: SAMPLE → HIGHPASS → DIST → LOWPASS
| Row | Effect | Settings | Purpose |
|---|---|---|---|
| 0 | SAMPLE | defaults | samples pass through the tape |
| 1 | HIGHPASS | cutoff 0.02 | removes sub-rumble only |
| 2 | DIST | amount 2.0, lowpass-cutoff 0.75, highpass-cutoff 0.0, mix 0.35 | parallel-blended tape saturation |
| 3 | LOWPASS | cutoff 0.85 | tape high-frequency rolloff |
Handle: DIST amount, +10.0 (2 → 12). · Shake: LOWPASS cutoff, −0.3 (0.85 → 0.55). · LFO: LOWPASS cutoff ±0.03, sine, speed 0.3 (slow analog drift).

**FX2 WOW & FLUTTER**: SAMPLE → HARMONY → LOWPASS
| Row | Effect | Settings |
|---|---|---|
| 1 | HARMONY | dry-level 0.0, pitch 1.0 (fully wet pitch path, no doubling) |
| 2 | LOWPASS | cutoff 0.8 |
LFO: HARMONY pitch ±0.008 (about ±14 cents), sine, speed 0.6. · Handle: LFO speed, +5.0 (0.6 → 5.6). · Shake: HARMONY pitch −0.04 (about −70 cents drag).

**FX3 DUSTY SAMPLER**: SAMPLE → HIGHPASS → LOWPASS → DIST → RING
| Row | Effect | Settings |
|---|---|---|
| 1 | HIGHPASS | cutoff 0.06 |
| 2 | LOWPASS | cutoff 0.6 (vintage sampler anti-alias filter) |
| 3 | DIST | amount 4.0, lowpass-cutoff 0.7, highpass-cutoff 0.0, mix 0.4 |
| 4 | RING | frequency 6500, mix 0.0 |
Handle: RING mix, +0.35 (0 → 0.35). · Shake: DIST amount, +15 (4 → 19).

**FX4 SLAPBACK MEMORY**: SAMPLE → DIST → DELAY
| Row | Effect | Settings |
|---|---|---|
| 1 | DIST | amount 1.5, lowpass-cutoff 0.8, highpass-cutoff 0.0, mix 0.25 |
| 2 | DELAY | time 0.12, echo 0.15, wet-level 0.2, dry-level 1.0, lowpass-cutoff 0.55, highpass-cutoff 0.1, cross-feed 0.0, balance 0.5 |
Handle: DELAY wet-level, +0.55 (0.2 → 0.75). · Shake: DELAY echo, +0.5 (0.15 → 0.65).

### DIGITAL DECAY (`Digital-Decay/fx-mic-disk/config.json`)

**FX1 BIT CRUSHER**: SAMPLE → HIGHPASS → DIST → RING
| Row | Effect | Settings |
|---|---|---|
| 1 | HIGHPASS | cutoff 0.04 |
| 2 | DIST | amount 3.0, lowpass-cutoff 1.0, highpass-cutoff 0.1, mix 0.55 |
| 3 | RING | frequency 9000, mix 0.1 |
Handle: DIST amount, +27 (3 → 30). · Shake: RING mix, +0.5 (0.1 → 0.6). · LFO: RING frequency ±3000, random, speed 8.0.

**FX2 GLITCH REPEAT**: SAMPLE → HIGHPASS → DELAY
| Row | Effect | Settings |
|---|---|---|
| 1 | HIGHPASS | cutoff 0.08 (stops low-end build-up in the repeats) |
| 2 | DELAY | time 0.09, echo 0.45, wet-level 0.05, dry-level 1.0, lowpass-cutoff 0.9, highpass-cutoff 0.1, cross-feed 0.0, balance 0.5 |
Handle: DELAY wet-level, +0.85 (0.05 → 0.9). · Shake: DELAY time, −0.06 (0.09 → 0.03). · LFO: DELAY echo ±0.4 (0.05 ↔ 0.85), square, speed 4.0.

**FX3 BROKEN STEREO**: SAMPLE → DELAY
| Row | Effect | Settings |
|---|---|---|
| 1 | DELAY | time 0.012, echo 0.35, wet-level 0.45, dry-level 0.85, lowpass-cutoff 0.9, highpass-cutoff 0.05, cross-feed 0.6, balance 0.5 |
Handle: LFO speed, +6.0 (0.5 → 6.5). · Shake: DELAY time, +0.02 (12 → 32 ms). · LFO: DELAY balance ±0.3, sine, speed 0.5.

**FX4 DIGITAL HAZE**: SAMPLE → HIGHPASS → DELAY → REVERB → LOWPASS
| Row | Effect | Settings |
|---|---|---|
| 1 | HIGHPASS | cutoff 0.05 |
| 2 | DELAY | time 0.33, echo 0.45, wet-level 0.25, dry-level 1.0, lowpass-cutoff 0.45, highpass-cutoff 0.15, cross-feed 0.4, balance 0.5 |
| 3 | REVERB | dry-level 1.0, wet-level 0.2, time 0.7 |
| 4 | LOWPASS | cutoff 0.8 |
Handle: REVERB wet-level, +0.6 (0.2 → 0.8). · Shake: DELAY echo, +0.4 (0.45 → 0.85). · LFO: DELAY lowpass-cutoff ±0.15, random, speed 0.4.

## 5. Level and safety design
- No feedback value ever exceeds 0.85, even with shake and LFO combined, so the delays always decay.
- Heavy distortion is always parallel-blended (mix ≤ 0.55), which limits loudness jumps. DIST amount tops out at 30 of 40.
- Every chain keeps `dry-level` at or near 1.0 and adds wet on top. There are no level dips when switching FX.
- Samples peak between −1 and −4 dBFS with TPDF dither. Loops are sample-accurate.

## 6. Storage
| Pack | Payload (config + 4 WAVs) | Of about 1 MB |
|---|---|---|
| Tape Culture | 608,737 bytes | 58% |
| Digital Decay | 425,091 bytes | 41% |
