soundmentations.PitchShift

class soundmentations.PitchShift(semitones: float, p: float = 1.0)[source]

Bases: BasePitchShift

Shift the pitch of audio by a specified number of semitones.

Parameters:
  • semitones (float) – Number of semitones to shift (positive or negative). - 12 semitones = 1 octave - Positive: pitch up, Negative: pitch down

  • p (float, optional) – Probability of applying the transform, by default 1.0.