Skip to content

Add independent audio pitch and playback speed controls (#1056) - #1106

Open
rajeshgk wants to merge 3 commits into
OpenShot:developfrom
rajeshgk:feature/independent-pitch-speed
Open

rajeshgk wants to merge 3 commits into
OpenShot:developfrom
rajeshgk:feature/independent-pitch-speed

Conversation

@rajeshgk

Copy link
Copy Markdown

Summary

Implements independent audio pitch and playback-speed controls in libopenshot, addressing issue #1056.

The implementation introduces optional Rubber Band processing to support time stretching and pitch shifting independently.

Changes

  • Add pitch and preserve_pitch keyframe controls to Clip.
  • Add a PitchProcessor wrapper around Rubber Band.
  • Integrate pitch-preserving audio processing with clip time mapping.
  • Make Rubber Band an optional build dependency.
  • Preserve existing audio processing behavior when Rubber Band is unavailable.
  • Maintain backward compatibility with existing clip JSON.
  • Add regression tests covering pitch preservation and octave adjustments at different playback speeds.

Validation

Rubber Band enabled

  • 48/48 Clip tests passed.
  • Verified pitch preservation at 0.5× and 2× playback speeds.
  • Verified +12 semitone pitch adjustment at 0.5× speed.
  • Verified −12 semitone pitch adjustment at 2× speed.

Rubber Band disabled

  • 47/47 Clip tests passed.
  • Confirmed compatibility with the legacy audio-processing configuration.

Both configurations passed with no test failures.

Compatibility

Rubber Band is optional. Existing builds without Rubber Band continue using the legacy audio-processing path.

Existing clip JSON without the new properties retains neutral pitch defaults.

Related issue

Addresses #1056.

Rajesh Gopinath Kumar added 3 commits October 14, 2026 10:23
Introduce optional Rubber Band audio processing for independent pitch shifting and time stretching.

Add clip pitch and preserve_pitch keyframes with JSON serialization and backward-compatible defaults.

Preserve legacy processing when Rubber Band is unavailable and add regression coverage for speed and pitch combinations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant