Pitch shifting is a sound recording technique that changes the pitch of a sound. It can raise or lower the pitch of a sound.
Pitch shifting can be done in a number of ways, including:
Resampling: Speeding up or slowing down a sound
Transposition: Transposes notes generated by an instrument
Harmonizer: Copies the original signal and pitches it to a different note
Pitch shifting is different from time stretching because it changes the pitch without affecting the duration or timing of the sound.
Here I try to demonstrate pitch shifting without altering the tempo of the following audio signal.
I perform pitch shifting on the audio using Librosa's librosa.effects.pitch_shift function.
Pitch Shift - High
Here I changed the pitch of the music, making it sound a bit higher.
Pitch shifting is done by 3 semitones.
In music, a semitone is the smallest interval between two musical notes.
Pitch shifting by three semitones represents an increase in pitch.
Pitch Shift - Low
Here I changed the pitch of the music, making it sound a bit lower.
The audio is adjusted to sound three semitones lower than its original pitch.
Shifting it down by three semitones lowers the frequency of that note, making it sound a bit lower or deeper while maintaining the tempo (speed) of the music.