Help - Search - Members - Calendar
Full Version: How to calculate pitch?
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
odyssey
I've been wondering how I calculate the correct frequency to pitch a tune one note higher, if the source has a samplerate of 44100. huh.gif

I know there's many DJ tools (even Audition) out there that will do this for me, but I suspect they have the same quality as SSRC has. tongue.gif

Can anyone enlighten me? crying.gif
dv1989
With or without speed adjustment?

Simply changing the sample rate would change the speed as well as the pitch; resampling would change neither.
odyssey
The idea was to change the samplerate to gain the pitch (yes, speed), and then resample down to the original samplerate using SSRC.
stephanV
The speed-up factor is not so difficult to calculate:

2^(x/12), where x is the number halftone increaments (in your case 2)

2^(2/12)= 1.122



EDIT: small mistake with the parentheses
botsing
stephan was quicker smile.gif

also see http://en.wikipedia.org/wiki/Twelfth_root_of_two
odyssey
Thanks for all the quick replys biggrin.gif I'll play around with these later.
bhoar
QUOTE(botsing @ Sep 12 2006, 05:40) *


This reminded me of something I've been wondering for a while: is the human hearing's sensitivity to overtones, thought to be the primary reason for our use of the eight notes/twelve half-tones in the majority of our scales, due to the physiology of the ear (perhaps primarily related to the shape and structure of the cochlea) or completely neurological in nature?

A little bit of googling came up with this reference to pitch perception testing w/ cochlear implants:

http://www.phys.unsw.edu.au/~jw/Fearnetal.html

And of course, it appears there are two theories, neither of which appears to be a perfect fit, on how the cochlea and brain work together to determine picth: the "place theory" and "rate theory":

CODE
The small bones of the middle ear input a displacement signal to one side of the tube via a window. This signal drives a transverse wave in the basilar membrane, whose cutoff frequency decreases along its length. As a result, high frequencies cause maximum vibration at the window end, and low frequencies cause maximum vibration at the other. In the normal ear, action potentials are produced in an array of hair cells which reside on the basilar membrane. Ohm [2] and Helmholtz [3] proposed that pitch was encoded tonotopically, i.e. by the place along the basilar membrane of the nerve stimulated (place theory). Seebeck [4] argued that nerve pulses were produced by each vibration and that their rate determined the perceived pitch (rate theory). In the place theory, it is difficult to explain the observed fine resolution of frequency (~0.2%). The rate theory cannot readily explain the perception of tones with frequencies many times greater than the maximum firing rate of neurones. Despite many elegant acoustic experiments, the relative importance of rate and place are still debated because, in the normal ear, the rate of mechanical stimulation of the basilar membrane is strongly correlated with position. Cochlear implants allow the local electrical stimulation of different regions of the cochlea at different rates. A range of experiments have studied pitch using CIs: Simmons et al [5] reported pitch estimates from a single subject with low resolution in position. Pitch as a function of stimulation rate was reported by Pijl [6] and by Collins et al [7].


Ok, so there's evidence of the place theory at work here...

CODE
For the CI subjects, pitch also depends on place of stimulation, decreasing with distance from the round window. This can be compared with the tonotopic arrangement of the normal ear where a doubling in the frequency of the acoustic signal corresponded to a displacement of about 4 mm along the basilar membrane for frequencies above several hundred Hz, and smaller displacements for lower frequencies [10].


...but...

CODE
Because the pitch scales shown in Fig 2b are approximately logarithmically dependent on rate, we can calculate that a doubling in stimulation rate corresponds to a displacement of about 2 mm in this range. For the series of experiments reported in Fig 2a, the displacement corresponding to a doubling of stimulation rate depends on position and rate. It is about 4-6 mm at low rates and decreases for higher rates.


Their caveated summary: mostly place-related (location of stimulation) but also reliant/influenced by stimulation rate.

Hope the above is stimul...interesting. smile.gif

-brendan
bhoar
The actual paper itself is really amazing, especially the backround on how hearing works in the ear:

http://www.phys.unsw.edu.au/~jw/reprints/FearnThesis.pdf

-brendan
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.