pyrubberband.pyrb.pitch_shift¶
-
pyrubberband.pyrb.
pitch_shift
(y, sr, n_steps, rbargs=None)[source]¶ Apply a pitch shift to an audio time series.
Parameters: - y : np.ndarray [shape=(n,) or (n, c)]
Audio time series, either single or multichannel
- sr : int > 0
Sampling rate of y
- n_steps : float
Shift by n_steps semitones.
- rbargs
Additional keyword parameters for rubberband
See rubberband -h for details.
Returns: - y_shift : np.ndarray
Pitch-shifted audio