# Sample Guide

All eight samples are **original sounds synthesized from scratch** by `tools/generate_samples.py`: oscillators, filtered noise and envelopes, with no recordings involved. Run the script to rebuild them byte-for-byte (fixed random seed).

Common specs: WAV, PCM, **16-bit, mono**, TPDF-dithered, DC-free, no clipping, peaks −1 to −4 dBFS, no leading silence.
On the device: files `1.wav`–`4.wav` in `fx-mic-disk/`. Readable copies are in `Samples/`.

## TAPE CULTURE (22,050 Hz: lo-fi bandwidth by design, and half the storage)

| Slot | File | Duration | Size | Peak / RMS | Mode |
|---|---|---|---|---|---|
| 1 | `1.wav` = `1-vinyl-crackle.wav` | 4.000 s | 176,444 B | −4.0 / −28.2 dBFS | startstop |
| 2 | `2.wav` = `2-tape-start.wav` | 1.400 s | 61,784 B | −1.0 / −12.9 dBFS | oneshot |
| 3 | `3.wav` = `3-dusty-drum-loop.wav` | 5.333 s | 235,244 B | −1.5 / −16.7 dBFS | startstop |
| 4 | `4.wav` = `4-vintage-chord.wav` | 3.000 s | 132,344 B | −1.0 / −15.2 dBFS | oneshot |

1. **Vinyl Crackle.** Warm band-limited surface noise, about 18 small ticks per second, and a few soft pops. The 250 ms tail is crossfaded into the head for a seamless loop. *Use:* a texture bed under vocals or beats. Press once to start, again to stop.
2. **Tape Start.** Transport clunk, then a recorded tone spinning up to speed with a small speed overshoot, motor hum and hiss. *Use:* intros, transitions, "press play" moments.
3. **Dusty Drum Loop.** Two bars at **90 BPM** with 58% swing: kick, snare, ghost note, closed and open hats, saturated and band-limited. Exactly 2 bars long, with drum tails wrapped back to the start so the loop is gap-free. *Use:* a beat to perform over, or a test signal for the FX.
4. **Vintage Chord.** An FM electric piano voicing **F major 9** (F2 C3 A3 E4 G4). Each voice is detuned slightly (±7 cents), with soft tremolo and tape saturation. *Use:* a chord stab, pad hit, or intro.

## DIGITAL DECAY (32,000 Hz: keeps glitch and noise top end up to 16 kHz)

| Slot | File | Duration | Size | Peak / RMS | Mode |
|---|---|---|---|---|---|
| 1 | `1.wav` = `1-digital-glitch.wav` | 0.750 s | 48,044 B | −2.0 / −12.5 dBFS | oneshot |
| 2 | `2.wav` = `2-reverse-impact.wav` | 1.738 s | 111,264 B | −1.0 / −21.3 dBFS | oneshot |
| 3 | `3.wav` = `3-sub-drop.wav` | 1.500 s | 96,044 B | −1.0 / −9.1 dBFS | oneshot |
| 4 | `4.wav` = `4-noise-sweep.wav` | 2.599 s | 166,396 B | −2.0 / −20.3 dBFS | oneshot |

1. **Digital Glitch.** One crunchy electronic hit: a metallic FM zap that dives from about 1.2 kHz into a low growl, with a square sub-octave underneath. It's crushed to 5-bit at 6.4 kHz and hard-driven, so it's gritty from start to finish. *Use:* accents, stabs, fills, phrase endings.
2. **Reverse Impact.** A synthetic hit through a generated hall tail, reversed so it swells into a hard stop. *Use:* time the stop to land on the downbeat for transitions and drops.
3. **Sub Drop.** A clean sine dropping 120 → 32 Hz with a small 2nd harmonic, so it's still audible on small speakers. *Use:* the moment after a build. Needs a system with real low end to be felt.
4. **Noise Sweep.** White noise through a band-pass rising exponentially from 200 Hz to 9 kHz, with a swelling level. *Use:* risers and build-ups. It pairs with Sub Drop.

## Storage budget
| Pack | 4 WAVs | config.json | Total | Of about 1 MB |
|---|---|---|---|---|
| Tape Culture | 605,816 B | 2,921 B | 608,737 B | 58% |
| Digital Decay | 421,748 B | 3,343 B | 425,091 B | 41% |

There's room to replace a sample with a longer one of your own. Keep each pack's total under about 1,000,000 bytes.

## Replacing a sample with your own
Export as WAV (mono 16-bit, 22.05–48 kHz keeps it small). Name it `1.wav`–`4.wav` to match the slot, then copy it to the drive. To change a playmode, edit the `samples` block in `config.json`.
