Random Duration-Stretched Slices
Multi-channel random slice time-stretching with PSOLA-based duration manipulation.
Note: This script is functionally identical to the Multi-channel Random Slice Time-Stretcher documented separately. For complete documentation including theory, parameters, and applications, please refer to that guide.
Quick Overview
What it does: Extracts random audio slices, applies PSOLA time-stretching, distributes each to separate channel (CH1=original, CH2-N=stretched slices).
Parameters
| Parameter | Default | Description |
|---|---|---|
| number_of_segments | 4 | Number of slices (creates 5-channel output) |
| min_duration | 0.5s | Minimum slice length |
| max_duration | 2.0s | Maximum slice length |
| Preset | Normal (1.0x) | Time-stretch factor |
Presets
- Normal (1.0x): No time change, spatial separation only
- Slow (1.5x): 50% longer, ambient/relaxed
- Fast (0.67x): 33% shorter, compressed/urgent
- Double speed (0.5x): 50% shorter, very fast
- Half speed (2.0x): 100% longer, very slow/drone-like
Quick Start
- Select one Sound object (mono or stereo)
- Run script
- Choose number of segments and duration range
- Select time-stretch preset
- Output: Multi-channel sound with original + stretched slices
Output format: (1+N) channels where N = number_of_segments. Channel 1 = original (left/mono), Channels 2-N = one stretched slice each. Export as multi-channel WAV for use in DAW.
Key Features
- Random temporal extraction with variable slice durations
- PSOLA-based time-stretching (pitch-preserving)
- Center positioning (slices aligned at original temporal locations)
- Independent channel per slice for spatial mixing
- Original preserved on Channel 1 as reference
Common Use Cases
- Multi-channel installation: Each channel → separate speaker
- DAW stem creation: Import as separate tracks for remixing
- Generative composition: Random distribution creates unique results per run
- Spatial audio: Surround/immersive mixing with isolated fragments
For complete documentation: See the full Multi-channel Random Slice Time-Stretcher User Guide which covers detailed theory, parameter interactions, processing pipeline, comparison to other techniques, and extensive application examples.