22.2 Synthetic Stem Renderer — v1.1.1 User Guide
Creates a 24-channel synthetic 22.2-style stem field from one mono or stereo source, with an optional stereo headphone render. The main engine is pure Praat; the experimental binaural mode additionally uses locally stored CNMAT KEMAR HRIR WAV files.
What this does
22.2 Synthetic Stem Renderer takes exactly one mono or stereo Sound and derives a 24-channel multichannel field organized as 10 middle-layer channels, 9 upper-layer channels, 3 lower-layer channels, and 2 LFE channels. It is a signal-processing approximation inspired by a 22.2-style loudspeaker layout; it is not a physical scene reconstruction, decoder, or measured-room renderer.
- Stereo input keeps the original left and right channels as the direct FL/FR anchors before final shared normalization.
- Mono input creates a widened front pair by delaying the right copy by
Front_width_ms. - Center, lateral residuals, wides, surround, upper, lower, and LFE stems are derived deterministically from the front pair.
- Surround, upper, lower, and LFE roles use fixed filtering, delays, and preset-dependent gains.
- The 24-channel array and headphone output can be rendered independently or together.
- The optional binaural mode convolves only the speaker channels for which the script contains verified local HRIR mappings.
Quick start
- Select exactly one mono or stereo Sound.
- Run
22_2_Stem_Renderer.praat. - Choose one of the three presets: Cinematic Film, Subtle Music, or Wide Mono.
- For mono input, set Front_width_ms. The default is 0.35 ms.
- Enable the 24-channel render, the headphone render, or both. At least one output must be enabled.
- If rendering headphones, choose Headphone Fold-down (Clean) or True Binaural (CNMAT KEMAR).
- For binaural mode, point Hrir_folder to the folder containing the required HRIR WAV files.
- Set Headroom_dBFS, then run the script.
<source>_22_2_Array. The headphone output is named <source>_Headphone_Preview or <source>_True_Binaural.
Presets
The current form contains three presets only. There is no Custom preset. A preset sets the center reinforcement, wide/ambience/upper/lower gains, side delay, and upper delay. The fixed decorrelation and filter frequencies remain the same for all presets.
| Preset | FC reinforce | Wide | Amb / Rear | Upper | Lower | Side delay | Upper delay |
|---|---|---|---|---|---|---|---|
| Cinematic Film | 0.50 | -6 dB | -4 dB | -6 dB | -9 dB | 40 ms | 30 ms |
| Subtle Music | 0.30 | -10 dB | -8 dB | -12 dB | -18 dB | 25 ms | 15 ms |
| Wide Mono | 0.40 | -9 dB | -6 dB | -9 dB | -12 dB | 35 ms | 25 ms |
24-channel layout
1. FL — Front Left
2. FR — Front Right
3. FC — Front Center
4. FWL — Front Wide Left
5. FWR — Front Wide Right
6. SiL — Side Left
7. SiR — Side Right
8. BL — Back Left
9. BR — Back Right
10. BC — Back Center
Upper Layer — 9 channels
11. TpFL — Top Front Left
12. TpFR — Top Front Right
13. TpFC — Top Front Center
14. TpSiL — Top Side Left
15. TpSiR — Top Side Right
16. TpBL — Top Back Left
17. TpBR — Top Back Right
18. TpBC — Top Back Center
19. TpC — Top Center
Lower Layer — 3 channels
20. BFL — Bottom Front Left
21. BFR — Bottom Front Right
22. BFC — Bottom Front Center
LFE — 2 channels
23. LFE1
24. LFE2
Processing pipeline
1. Front pair
With stereo input, channel 1 is copied to stem_L and channel 2 to stem_R. With mono input, two copies are made and the right copy is delayed by a sample-quantized version of Front_width_ms. The delayed copy is trimmed back to the original duration.
2. Base stems
The ambience signals are therefore lateral residuals, not a conventional pure Side signal (L-R)/2. The front wides blend direct front content with those residuals.
3. Channel builder
Each of the 24 output channels is copied from one base stem and can then receive a Hann-band filter, a fixed delay, and a linear gain converted from dB. Delays are implemented by prepending silence and trimming back to the source duration, so every stem remains the same duration.
Channel derivation
| Channels | Base | Filtering | Delay | Gain |
|---|---|---|---|---|
| FL / FR | Direct fronts | Full band | 0 | 0 dB |
| FC | Mid × center reinforcement | Full band | 0 | 0 dB builder gain |
| FWL / FWR | Direct + lateral residual blend | Full band | 5 / 12 ms | Preset Wide gain |
| SiL / SiR | Amb_L / Amb_R | 120–6000 Hz | Side / Side+7 ms | Preset Amb gain |
| BL / BR | Amb_L / Amb_R | 120–6000 Hz | Side+10 / Side+17 ms | Preset Amb gain |
| BC | Mid | 120–6000 Hz | Side+15 ms | Amb gain −3 dB |
| TpFL / TpFR | FL / FR | 250–4000 Hz | Upper / Upper+7 ms | Preset Upper gain |
| TpFC | FC | 250–4000 Hz | Upper+5 ms | Upper gain −3 dB |
| TpSiL / TpSiR | Amb_L / Amb_R | 250–4000 Hz | Upper+Side / +7 ms | Preset Upper gain |
| TpBL / TpBR | Amb_L / Amb_R | 250–4000 Hz | Upper+Side+10 / +17 ms | Preset Upper gain |
| TpBC | Mid | 250–4000 Hz | Upper+Side+15 ms | Upper gain −3 dB |
| TpC | Mid | 250–4000 Hz | Upper+25 ms | Upper gain −3 dB |
| BFL / BFR | FL / FR | 300–3000 Hz | 4 / 11 ms | Preset Lower gain |
| BFC | FC | 300–3000 Hz | 7.5 ms | Lower gain −3 dB |
| LFE1 / LFE2 | Mid | 20–120 Hz | 0 | 0 dB |
c_reinforce and the wide stems contain the 0.6/0.6 matrix blend.
Headphone modes
Headphone Fold-down (Clean)
This is intentionally a front-oriented reference rather than a fold-down of all 24 stems:
No side, rear, upper, lower, or LFE channels enter this headphone preview. The result is then peak-scaled once to the requested headroom.
True Binaural (CNMAT KEMAR) — experimental mode
This is the script's menu name. The current implementation does not binauralize all 24 channels: it uses the 14 speaker positions for which explicit KEMAR left/right HRIR mappings are present in the script.
| Mapped channels | Contribution scale before ear sum |
|---|---|
| FL, FR | 1.00 |
| FC | 0.12 |
| SiL, SiR | 0.10 |
| BL, BR | 0.08 |
| TpFL, TpFR | 0.06 |
| TpSiL, TpSiR | 0.05 |
| TpBL, TpBR | 0.04 |
| TpC | 0.03 |
FWL/FWR, BC, TpFC, TpBC, the three lower channels, and both LFE channels are not included in the current binaural map.
HRIR handling
Each mapped output stem is convolved separately with its mapped left-ear and right-ear HRIR. HRIRs are resampled to the source sample rate when required; if an HRIR file is multichannel, only its first channel is used.
Parameters & defaults
| Parameter | Default | Actual role |
|---|---|---|
| Preset | Cinematic Film | Selects one of the three fixed macro-control sets. |
| Front_width_ms | 0.35 ms | Mono input only. Requested right-front delay; quantized to the nearest sample. The form requires a positive value and the script has no explicit upper clamp. |
| Render_22_2_output | yes | Returns the 24-channel Sound. |
| Render_headphone_output | yes | Returns the selected stereo headphone render. |
| Headphone_mode | Fold-down (Clean) | Front-oriented clean preview or mapped KEMAR convolution. |
| Hrir_folder | Kemar_HRIR/ | Folder used only when binaural headphone rendering is requested. A trailing slash is added automatically if needed. |
| Headroom_dBFS | -1.0 dBFS | Peak target for each final returned object. Values above 0 are treated as 0 dBFS. |
| Draw_visualization | yes | Draws the current v1.1.1 multi-panel process figure. |
| Play_headphone_result | yes | Plays the final headphone object if one was successfully rendered. It does not play the 24-channel array. |
Final level handling
The current implementation does not peak-normalize every derived stem independently. The internal channel relationships are preserved until the final output object is built.
24-channel output
Headphone output
The completed stereo headphone object is measured separately and receives one common stereo gain to the same headroom target.
Visualization v1.1.1
The current figure is a process overview rather than a measurement of a physical 22.2 room.
Implementation notes & limitations
- Input: exactly one mono or stereo Sound. More than two channels are rejected.
- No external dependency for the 24-channel render: the main upmix is implemented in Praat.
- Binaural dependency: the experimental KEMAR mode requires the locally mapped HRIR WAV files.
- Mono width is a delay: there is no decorrelated stereo synthesis at the front; FR is a delayed copy of the mono source.
- Surround “decorrelation” is deterministic delay offset: paired roles commonly differ by 7 ms. There is no random phase, all-pass network, or statistical decorrelator.
- Fixed duration: delayed channels are trimmed back to the source duration; their delayed tail does not extend the output.
- LFE: both LFE channels are identical derivatives of Mid filtered to 20–120 Hz before final shared normalization.
- No loudspeaker calibration: channel gains are synthesis choices, not SPL calibration values.
- No claim of standard compliance: the 24-channel organization is 22.2-style and synthetic; this tool does not encode metadata or implement an official 22.2 distribution/decoding standard.