Stretch-Tremolo Ambience — User Guide
Creates an extended mono cloud with Praat overlap-add lengthening, applies a unipolar tremolo to that cloud, and mixes it in parallel with the original dry channels. The cloud can continue beyond the original Sound as an ambient tail.
What this does
Stretch-Tremolo Ambience builds a second, extended layer from the selected Sound. The wet layer is first reduced to a centered mono source, lengthened with Praat's Lengthen (overlap-add) operation, and then modulated by a smooth tremolo envelope. The original Sound remains the dry layer.
When the wet cloud is active, the output follows the full stretched-cloud duration. During the original source duration, dry and wet layers are summed in parallel. After the source ends, the wet cloud continues alone as a tail.
Processing pipeline
Processing order
- Validate the Sound and resolve preset values.
- Resolve an adaptive pitch-analysis range for Praat's overlap-add lengthening.
- Create a mono cloud source, with a strongest-channel fallback if the multichannel fold-down nearly cancels.
- Lengthen the complete cloud source by Stretch Factor.
- Apply local-time unipolar tremolo and a short fade at the very end of the cloud.
- Create a new output with the original channel count and the full cloud duration.
- Mix the original dry channels with the same mono cloud in parallel.
- Apply attenuation-only Safety Peak when needed.
If Wet Cloud Level = 0, the script uses a dedicated dry-only path and does not build or stretch a cloud.
Cloud creation
Mono cloud source
Mono input is copied directly for cloud generation. Multichannel input is converted to mono first. The script also measures the peak of every original channel. If the mono fold-down peak is less than 10% of the strongest channel peak, it discards the fold-down and uses the strongest individual channel instead. This protects the cloud source from severe inter-channel cancellation.
Overlap-add lengthening
The cloud is created with Praat's Lengthen (overlap-add) command. v0.4 does not crop the stretched result back to the source duration.
The actual duration is whatever Praat returns from the lengthening operation and is measured directly before the final output is created.
Adaptive pitch bounds
The overlap-add operation uses a pitch range that adapts to the selected Sound:
If the resolved minimum is no longer below the maximum, the script stops instead of attempting an invalid stretch on a Sound that is too short for the available sample rate.
Random seed
Random Seed controls reproducibility of the overlap-add stage. A nonzero value initializes Praat's random state predictably before lengthening. A value of 0 uses unpredictable initialization. After the cloud is created, the script restores unpredictable random initialization.
Cloud tremolo
The stretched cloud receives a unipolar cosine tremolo based on local time from the original Sound start:
The envelope therefore starts at unity gain. Its maximum is 1 and its minimum is 1 − Cloud Depth. With depth 1, the trough reaches zero; with depth 0, the cloud is not amplitude-modulated.
If Cloud Rate = 0 Hz, the cosine remains at 1 and the tremolo stage leaves the cloud at unity gain.
Tail fade
The final end of the stretched cloud receives a short linear fade to zero so the extended layer does not stop abruptly:
Parallel mix & duration
With an active cloud, the script creates a new multichannel Sound from the original start time to the stretched cloud end time. During the original source portion:
After the original source ends:
The same mono cloud sample is written into every output channel. This means the dry portion preserves the original channel differences, while the extended tail itself is centered and identical across channels.
Dry-only path
When Wet Cloud Level = 0, output duration remains the original duration. If Dry Level is exactly 1, the result is an exact copied bypass and Safety Peak is deliberately skipped. If Dry Level differs from 1, only the dry gain is applied and Safety Peak may attenuate the result if necessary.
Presets
| Preset | Stretch | Rate | Depth | Dry | Wet |
|---|---|---|---|---|---|
| Custom | form value | form value | form value | form value | form value |
| Ethereal Pad (Smooth) | 4.0× | 0.50 Hz | 0.30 | 1.0 | 0.5 |
| Ghostly Trail (Slow pulse) | 2.5× | 0.30 Hz | 0.60 | 1.0 | 0.4 |
| Dark Drone (Deep stretch) | 8.0× | 0.20 Hz | 0.20 | 1.0 | 0.7 |
| Shimmering Tail (Fast wobble) | 3.0× | 6.00 Hz | 0.50 | 1.0 | 0.4 |
Named presets replace Stretch Factor, Cloud Rate, Cloud Depth, Dry Level, and Wet Cloud Level. Random Seed, Safety Peak, visualization, and playback remain under the user's direct control.
Parameters
| Parameter | Default | Meaning | Runtime range |
|---|---|---|---|
| Stretch Factor | 3.0 | Duration multiplier used by the overlap-add cloud. | 1…20. |
| Cloud Rate Hz | 2.0 | Tremolo-cycle rate applied after stretching. | 0…30 Hz. |
| Cloud Depth | 0.5 | Maximum unipolar attenuation depth. | 0…1. |
| Random Seed | 0 | Controls overlap-add reproducibility. | 0…2147483647; 0 = unpredictable. |
| Dry Level | 1.0 | Gain of the original channels during their original duration. | 0…2. |
| Wet Cloud Level | 0.6 | Gain of the mono stretched cloud. | 0…2; 0 disables cloud processing. |
| Safety Peak | 0.99 | Maximum output peak after active processing. | 0…1; 0 disables safety. |
| Draw Visualization | yes | Draws the AudioTools figure. | Does not change the audio. |
| Play Result | yes | Plays the completed Sound. | Does not change the audio. |
Channels & output
| Property | Behavior |
|---|---|
| Cloud source | Mono; multichannel input uses fold-down with strongest-channel fallback on severe cancellation. |
| Dry audio | All original channels are preserved independently during the source portion. |
| Wet audio | One mono cloud copied identically to every output channel. |
| Output channel count | Same as the input Sound. |
| Output duration | Original duration on dry-only path; full stretched-cloud duration when wet cloud is active. |
| Source start time | Preserved. |
| Sample rate | Preserved. |
| Randomness | Stretching can be reproducible with a nonzero Random Seed. |
| Safety | Only peaks above Safety Peak are attenuated; quieter output is never boosted. |
Visualization
When Draw Visualization is enabled on the active-cloud path, v0.4 draws:
Input
The original Sound waveform.
Output
The complete extended multichannel output waveform.
Wet cloud
The mono stretched-and-modulated cloud across its full duration.
Tremolo envelope
The cloud gain over the first up to 4 seconds, with unity shown as a reference.
Summary strip
The summary reports Stretch Factor, cloud duration, tremolo rate/depth, Dry and Wet levels, output duration, channel count, and Safety setting.