Audio Pitch Manipulation Through Time
Afficher commentaires plus anciens
Dear Community, I recently discovered the possibility to manipulate the pitch of a sine wave by changing the time interval values before the creation (y=sin(2*pi*f*t)) For my new project I would need to manipulate the pitch of an imported audio file in the same way but I can not figure out how to achieve it. Any help is very much appreciated! Thanks!
Réponse acceptée
Plus de réponses (1)
jibrahim
le 20 Oct 2022
%Read in an audio file and listen to it.
[audioIn,fs] = audioread('Counting-16-44p1-mono-15secs.wav');
sound(audioIn,fs)
%Increase the pitch by 3 semitones and listen to the result.
nsemitones = 3;
audioOut = shiftPitch(audioIn,nsemitones);
sound(audioOut,fs)
%Decrease the pitch of the original audio by 3 semitones and listen to the result.
nsemitones = -3;
audioOut = shiftPitch(audioIn,nsemitones);
sound(audioOut,fs)
1 commentaire
Star Strider
le 20 Oct 2022
Catégories
En savoir plus sur Measurements and Spatial Audio dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!