Pitch Stylization and Shift — User Guide
Pitch-contour stylization, chromatic quantization, monotone transformation, transposition, and optional formant following with duration-preserving Praat resynthesis.
What this does
Pitch Stylization and Shift analyzes the F0 contour of one Sound and builds a processed PitchTier. Depending on the selected preset, it can simplify the contour, quantize voiced pitch points to the nearest equal-tempered semitone, flatten the contour to a single register, transpose the result, or combine stylization and transposition.
The processed PitchTier is applied independently to every original channel with Praat Manipulation and overlap-add resynthesis. An optional formant-follow stage can then move the spectral envelope in the same general register direction while leaving pitch, pitch range, and duration multipliers at 1 inside Praat's Change speaker operation.
Stylize_Hz.Quick start
- Select exactly one Sound object in Praat.
- Run
Pitch_Stylization_and_Shift.praat. - Choose a preset, or choose Manual and set
Stylize_HzandShift_semitones. - Set
Formant_follow_percentif you want timbre/formants to follow the measured register change. - Set the pitch-analysis range and time step for the source material.
- Choose whether to draw the visualization and play the result.
Min_pitch and Max_pitch control pitch detection. They are not the final synthesis limits. Processed targets are separately constrained to 20 Hz through 0.45 × sample rate.Presets
The menu contains six built-in transformations plus Manual. A preset overrides the internal stylize amount, shift amount, and processing mode shown below. It does not override Formant_follow_percent, the analysis settings, or the visualization/play switches.
| Preset | Mode | Stylize | Shift | Result |
|---|---|---|---|---|
| Manual | Normal | User value | User value | Direct manual stylization and/or transposition. |
| Gentle Smoothing | Normal | 3 Hz | 0 st | Simplifies the detected pitch contour without intentional register shift. |
| Stepwise Quantize (Auto-tune) | Quantize | — | 0 st | Moves each voiced tier point to the nearest 12-TET semitone referenced to A4 = 440 Hz. |
| Robot Voice (Monotone) | Robot | — | −2 st | Flattens the contour to its geometric-mean F0, then lowers that centre by 2 semitones. |
| Pitch Down (−1 Octave) | Normal | 0 Hz | −12 st | Transposes the original detected contour down one octave. |
| Pitch Up (+1 Octave) | Normal | 0 Hz | +12 st | Transposes the original detected contour up one octave. |
| Strong Stylize | Normal | 10 Hz | −5 st | Strong contour simplification followed by a five-semitone downward transposition. |
Pitch processing
Normal mode
The source PitchTier is copied. If Stylize_Hz > 0, Praat's Stylize: …, "Hz" simplifies that working tier. Each resulting point is then optionally multiplied by the transposition ratio:
Quantize mode
Each detected voiced point is quantized independently to the nearest equal-tempered semitone around A4 = 440 Hz:
The preset itself uses zero additional transposition.
Robot mode
The script computes the geometric mean of the original PitchTier points in log-frequency space. Every processed pitch point is set to that common centre and then shifted by the preset's −2 semitones.
Synthesis safety
After the selected transformation and transposition, each target point is constrained to 20 Hz … 0.45 × source sample rate. The number of limited points is reported in the Info window.
Identity path
Manual + Stylize 0 Hz + Shift 0 st bypasses PSOLA and begins from a direct copy of the source. Pitch analysis still runs for reporting/visualization. The final common peak-safety stage is still active, so a source whose absolute peak exceeds 0.95 will be attenuated to 0.95; otherwise the copied audio is unchanged.
If no usable voiced pitch is detected, this identity setting can still return the copied Sound. Any non-identity transformation stops with a clear message when no usable pitch is available.
Formant follow
Formant_follow_percent couples timbral/formant movement to the measured mean pitch-register change of the processed PitchTier. The mean change is measured in semitones at the original PitchTier time points.
The formant ratio is safety-limited to 0.5 … 2.0. Formant processing runs only when the follow amount is above zero and the resulting ratio differs from 1.
Praat Change speaker is applied separately to every output channel with:
pitch multiplier = 1
pitch-range multiplier = 1
duration multiplier = 1
The pitch-analysis range used by Change speaker is adapted to the measured processed register and capped below 0.45 × sample rate. If the requested ratio was clipped to the 0.5–2.0 safety range, the raw ratio is reported in the Info window.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
| Preset | Manual | Manual plus six built-in pitch transformations. |
| Stylize_Hz | 2 Hz | Praat PitchTier stylization frequency in Normal mode; must be ≥ 0. |
| Shift_semitones | 0 st | Transposition applied after Normal/Quantize/Robot target generation; validated to −48 … +48 st. |
| Formant_follow_percent | 0% | 0 preserves the no-formant-follow path; 100% maps the measured mean register change directly to the formant ratio before safety limiting. |
| Time_step | 0.005 s | Pitch-analysis and Manipulation time step. |
| Min_pitch | 75 Hz | Lower analysis bound. |
| Max_pitch | 600 Hz | Upper analysis bound; must be below 45% of the source sampling frequency. |
| Draw_visualization | Yes | Draw the current run in the Picture window. |
| Play_result | Yes | Play the final Sound. |
Output behavior
- Name:
<source>_Manual,_Gentle,_Quantize,_Robot,_Octave-,_Octave+, or_Strong. - Channels: original channel count preserved. A mono copy is used only as the shared pitch-analysis reference; the same processed PitchTier is then applied independently to each original channel.
- Duration and time domain: preserved.
- Sample rate: preserved.
- Formants: unchanged by the optional formant-follow stage when
Formant_follow_percent = 0; otherwise processed per channel as described above. - Peak handling: after all optional processing, if the final absolute peak exceeds 0.95 the Sound is scaled down to 0.95. Quieter results are not boosted. This is an attenuate-only safety ceiling, not target normalization.
Visualization
When Draw_visualization is enabled, the Picture window contains:
- Original waveform and result waveform. Each is drawn with Praat's automatic amplitude range, so the two waveform panels do not share one fixed amplitude scale.
- Pitch comparison: original PitchTier in grey and the processed PitchTier in the mode color. Time is displayed relative to the Sound start.
- Quantize grid: in Quantize mode, horizontal dotted lines mark equal-tempered semitone frequencies across the displayed pitch range.
- Mode indicator: Normal, Quantize, or Robot.
- Statistics: mode, stylize/shift values when relevant, measured mean F0 change, formant-follow amount, and applied formant ratio.
- Summary strip with the transformation type and a reminder that detailed run parameters are reported in the Info window.
For an identity run on material with no detected voiced pitch, the pitch panel explicitly reports that no voiced pitch was detected.