# Cinematic SFX: trailers, adverts, cutscenes

## Contents
1. What "cinematic" means acoustically
2. The vocabulary of gestures
3. Roles and layering
4. Timing: sync, anticipation, silence
5. Urgency and other intents
6. Delivery: loudness, peaks, formats
7. Verifying

## 1. What "cinematic" means acoustically

Not realism — **hyper-realism with intent**: sounds larger, cleaner and more shaped than the event would make,
placed to steer attention. Three properties do most of the work:

- **Scale**: real low end (30–80 Hz) that lasts, wide stereo above it, a long tail in a big space.
- **Contrast**: the hit is big because the 300 ms before it were small. Dynamics are composed, not incidental.
- **Clarity of role**: at any moment one layer leads; every layer owns a frequency band and a moment in time.

In adverts (15–30 s, often heard on phones) favour clarity and mid-range presence over sub; one idea per sound;
tails short enough not to cover the voice-over. In game cutscenes and trailers there is room for weight and tail.

## 2. The vocabulary of gestures

| Gesture | Function | Block (and its routes) |
|---|---|---|
| **Hit / impact** | punctuation: a cut, a title, a blow | `impact({ weight, brightness, character, tail })` — character: stone, metal, wood, synthetic, organic |
| **Boom / sub drop** | weight under a hit; a fall | `boom`, `subDrop({ from, to, seconds })` |
| **Riser** | tension pointing at a moment | `riser({ kind })` — noise (filter sweep), tonal (pitch climb), shepard (endless rise), tension (accelerating pulse), reverse (sucked-back tail) |
| **Whoosh / pass-by** | motion, transitions, wipes | `whoosh({ texture, peakAt, pan })` — air, fire, metal, cloth, energy |
| **Braam** | the brass-like blast: threat, scale | `braam({ note, growl, brightness })` |
| **Downer / power-down** | release, failure, deflation | `downer`, a `subDrop`, a reversed riser |
| **Shimmer / sparkle** | magic, reveal, premium, tech | `shimmer({ scale, density, rise })` |
| **Drone / bed** | mood under everything | `drone({ mood })` — dark, tense, airy, warm; `period` to loop |
| **Pulse** | pressure, countdown, body | `heartbeat({ bpm: [a, b] })`, a gated drone, a clock |
| **Glitch** | digital, broken, edgy cut | `glitch(buf, …)` on any source |
| **Reverse swell** | the "breath in" before a sound | `reverseSwell(buf)` of the sound itself |
| **Stinger** | a short identity: logo, notification | usually hit + shimmer + short tail, 0.5–2 s |

Each block is one implementation; the `kind` / `character` / `texture` options exist so you can choose a
different mechanism per brief. They are short functions — copy one and rewrite it when the brief calls for
something they do not do (a riser made of voices, a whoosh made of sand, an impact made of a door).
Raw material from the other modules is fair game: `strike`, `shatter`, `GrainFlow`, `thunder`, `Fire`,
`speak` + `voiceFx`, `Engine`, granulated recordings.

## 3. Roles and layering

Think in roles; a hit rarely needs all of them:

| Role | Band | Carries | Typical source |
|---|---|---|---|
| sub | 30–70 Hz, mono | weight, physical impact | sine with pitch knock, `boom` |
| body | 80–400 Hz | size | low-passed noise burst, big modal plate, thump |
| crack / attack | 1–6 kHz, < 30 ms | definition, what it is made of | `strike`, noise click, FM zap |
| texture / debris | 2–12 kHz, 0.2–1.5 s | aftermath, detail, width | `crunch`, `shatter`, sparks, shimmer |
| tail | whole band, decaying | place and scale | reverb (`rt60` 2–6 s), delays |
| sweetener | anywhere | the particular idea | animal growl pitched down, metal scrape, reversed bit, a breath |

- Give each role its own band and envelope; high-pass everything that is not the sub around 80–120 Hz.
- Stagger onsets by a few ms to tens of ms (crack first, body, then sub blooming): one transient that unfolds
  reads bigger than a stack that lands in one sample — and avoids the layers cancelling.
- Keep the sub mono and centred; put width in texture and tail (`decorrelate`, `width(buf, amount, monoBelow)`).
- Saturation (`drive`) adds harmonics that make low layers audible on small speakers and glues layers.
- Fewer, better-separated layers beat many. Remove a layer and re-measure before adding one.

## 4. Timing

- **Sync point**: the frame the picture demands. Assemble with `cue(layers, { sync })`: hits anchor `'start'`,
  risers and reverse swells anchor `'end'`, whooshes anchor `'peak'`. The result's `sync` time is where the cut is.
- **Lead-in**: a riser of 1–4 s for trailers, 0.3–1 s for UI/advert beats. `curve` > 1 holds back and rushes late.
- **The gap**: 50–300 ms of near-silence (or just a thin high element) immediately before the hit makes it land
  harder than any extra layer. Cut the riser slightly early rather than butting it against the hit.
- **Whoosh into hit**: the whoosh peak sits 0–60 ms before the hit; its tail is masked by it.
- **Tail discipline**: the tail must be out of the way before the next event or line of dialogue. Duck it
  (`duck`) or shorten `rt60` rather than lowering the whole hit.
- Frame maths: 24 fps = 41.7 ms, 30 fps = 33.3 ms, 60 fps = 16.7 ms per frame. Sync within ±1 frame is visible;
  aim for ±10 ms. Sound slightly *late* (≤ 1 frame) is forgiven; early is not.

## 5. Urgency and other intents

Urgency = **rate of change that keeps increasing**. Any of these, alone or combined:

- pitch or filter cutoff rising (`brightnessTrendOctPerSec` > 0), especially accelerating;
- events getting closer together (pulses, ticks, heartbeat: `bpm: [70, 150]`, the `tension` riser);
- roughness: amplitude modulation at 20–70 Hz, beating between close partials, distortion;
- dissonance: minor seconds, tritones, clusters (`drone({ mood: 'tense' })`);
- loss of low end as the high end grows (lifting off the ground), then the sub returning on the hit;
- less and less silence between elements.

Opposites give calm/resolve: falling pitch, slowing pulse, opening space, consonant or noise-soft spectra.
Other common briefs: *premium/clean* → few layers, sine/glass shimmers, short precise tails, nothing rough.
*Dread* → slow sub swells, sparse high metallic scrapes, long gaps. *Playful* → pitch bends upward, bubbly
`blip`s, bouncy rhythm, short decays. *Tech/sci-fi* → FM, ring-mod, quantized pitch steps, `energy` whooshes,
glitch. *Epic* → braam + hit + long hall tail, everything wide except the sub.
These are palettes; the brief's nouns (the product, the creature, the place) should supply the sweetener that
makes the cue this project's and not a generic one.

## 6. Delivery

`master(buf, { target, ceilingDb, glue, monoBelow })` = sub-sonic high-pass → optional glue compression →
loudness target → true-peak-safe limiter.

| Target | Integrated loudness | True peak |
|---|---|---|
| EBU R128 broadcast (Europe) | −23 LUFS | −1 dBTP |
| ATSC A/85 (US TV) | −24 LKFS | −2 dBTP |
| Online video / social / streaming ads | −16 … −14 LUFS | −1 dBTP |
| Trailers, game cinematics (check the platform spec) | −18 … −12 LUFS, wide range | −1 dBTP |
| Individual SFX assets for a game engine | peak-normalized −1 … −3 dBFS, 16-bit/48 kHz; the engine mixes | — |

Always confirm the actual spec with the user; these are the common defaults. For single one-shots loudness
means *momentary max*. 48 kHz is the film/game rate; 24-bit for masters, 16-bit for shipped assets.
Leave 2–5 frames of silence at the head only if the pipeline asks for it — otherwise start at the sound.

## 7. Verifying

`--lens cinematic`: `hitTime` (onset of the largest energy step — must equal the sync point; the *energy
climax* may trail it by the low end's rise), `buildMonotonicity` (+1 = the riser really rises),
`brightnessTrendOctPerSec`, `preDipDb` (the gap), `tailSeconds`, `lowEndSeconds`, `subDb`.
`--png --zoom sync-0.3,sync+0.3` shows the stagger of layers at the hit: a broadband vertical edge, sub starting
under it, debris after. `mono-sum loss` and `lowCorr` check that the weight survives mono playback.
Compare alternative cues with `compare.mjs` to make sure "version B" is actually a different idea.
