The Pitch of signal

13 visualizzazioni (ultimi 30 giorni)
Nachiket Patki
Nachiket Patki il 25 Mar 2017
Commentato: Star Strider il 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 Commento
Chad Greene
Chad Greene il 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.

Accedi per commentare.

Risposte (1)

Star Strider
Star Strider il 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 Commenti
Nachiket Patki
Nachiket Patki il 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 il 28 Mar 2017
My pleasure.
You, too!

Accedi per commentare.

Categorie

Scopri di più su Measurements and Spatial Audio in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by