Effacer les filtres
Effacer les filtres

The Pitch of signal

7 vues (au cours des 30 derniers jours)
Nachiket Patki
Nachiket Patki le 25 Mar 2017
Commenté : Star Strider le 28 Mar 2017
Hello sir, According to my knowledge pitch of any signal is nothing but its frequency, so if i keep the same frequency of any signal then the audio that we hear should be same right? While I was working with matlab, what I did is, I kept the frequency same but changed the sampling rate(for the same sinusoid), the result is I got the different sound for 2 different sampling rates. How can that be possible? can you please explain it to me?
Thank you
  1 commentaire
Chad Greene
Chad Greene le 25 Mar 2017
Pitch is perceived frequency. The two terms are often interchangeable, but the auditory system is complex, and in some situations a person can perceive two different frequencies to be the same.

Connectez-vous pour commenter.

Réponses (1)

Star Strider
Star Strider le 25 Mar 2017
I am not certain what you did from your description, so I am guessing here.
The sound function (or whatever you used to play your signal) knows only what you tell it. If you sampled your signal at 10000 Hz and then told sound to play it at 10000 Hz, it will seem exactly as you recorded (or created) it. If you told sound to play it with a 12500 Hz sampling frequency, it will sound higher, and at 7500 Hz, it will sound lower.
Example:
Fs = 10000;
t = [0 : 1/Fs : 2]';
sig = sin(2*pi*t*1000); % Create 1000 Hz Tone
sound(5*sig, Fs) % Sounds Normal
pause(2)
sound(5*sig, 0.75*Fs) % Sounds Lower
pause(2.5)
sound(5*sig, 1.25*Fs) % Sounds Higher
The different pitches you hear relate to how fast sound plays your signal and sends it to your audio system. The duration will also change, so here the original sound will play for 2 seconds, the ‘lower’ sound for 2/0.75=2.7 seconds, and the ‘higher’ sound for 2/1.25=1.6 seconds.
In digital signal processing, sampling theory is not trivial. For a full understanding, please consult a detailed textbook on digital signal processing for a thorough discussion. It is much too detailed and extensive to discuss here.
  10 commentaires
Nachiket Patki
Nachiket Patki le 28 Mar 2017
okk sir I will try that. But really thank you for clearing all my doubts. :) Have a nice day
Star Strider
Star Strider le 28 Mar 2017
My pleasure.
You, too!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Measurements and Spatial Audio dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by