Tempo-Pitch Curves (Accelerando & Ritardando) — User Guide
Local tempo curves with optional pitch tracking of the same effective tempo trajectory.
What this does
The script builds one of three tempo shapes across the input: Accelerando, Ritardando, or Slow-Fast-Slow. A 101-point DurationTier carries the final applied time-scaling curve. The user can keep the original total duration or request a new duration between 0.3× and 3.0× the source.
In Pitch changes with tempo mode, voiced F0 follows the same local effective tempo factor used by the final normalized DurationTier. In Keep pitch constant mode, only the DurationTier is replaced.
Quick start
- Select exactly one Sound.
- Choose Pattern_type.
- Choose Pitch_behavior.
- Set Strength from 0 to 5.
- Keep original duration or enter a Target_duration.
- Run. Output naming identifies pattern and pitch mode.
Tempo curve
The script samples this curve at 101 points (i=0..100). It then finds one global scale factor by bisection so the integrated applied DurationTier matches the requested total-duration ratio after safety clamping. The visualization shows effectiveTempo = 1 / appliedDurationFactor, not the unnormalized raw curve.
Pitch behavior
Pitch changes with tempo
Pitch is source-relative and local: at every detected F0 point, the original pitch is multiplied by the interpolated effective tempo factor at that time. It is not an average pitch shift.
Synthesis pitch is limited to 20 Hz .. 0.45*SR. The pitch analysis reference is mono, 40 Hz .. min(1200, 0.45*SR). If no voiced pitch is detected, the script automatically performs duration-only processing.
Keep pitch constant
The source PitchTier inside each channel's Manipulation object is left unchanged; only the shared DurationTier is replaced.
Duration control
| Mode | Behavior |
|---|---|
| Keep original duration | Desired duration ratio = 1.0. The curve is globally scaled so its integrated applied duration equals the source duration. |
| Specify new duration | Desired ratio = Target_duration / source duration. Requests outside 0.3× .. 3.0× are rejected. |
Processing
The shared curve is constructed in the source's true xmin/xmax domain. For multichannel input, a mono copy is used only for pitch analysis. Each original channel is then converted separately to a Manipulation object, given the same DurationTier and, when requested and available, the same shifted PitchTier, and resynthesized with overlap-add. The original channel count is rebuilt exactly.
No Change gender post-stage is used. Target duration is represented directly in the DurationTier. Peak safety is attenuation-only at 0.99.
Visualization
- Original waveform and Result waveform are drawn with separate automatic amplitude scaling.
- The Tempo Factor panel shows the effective applied tempo after duration normalization and clamping.
- The 1.0 reference means unchanged local tempo; values above 1 are faster and below 1 are slower.
- The stats line reports pattern, strength and selected mode.
Output
| Pattern | Pitch+Duration | Duration only |
|---|---|---|
| Accelerando | <source>_accel_pitched | <source>_accel_PSOLA |
| Ritardando | <source>_ritard_pitched | <source>_ritard_PSOLA |
| Slow-Fast-Slow | <source>_slowFastSlow_pitched | <source>_slowFastSlow_PSOLA |
Channel count is preserved. The Info window reports requested ratio, represented tier ratio, actual result duration and whether peak safety was applied.