Csound Csound-dev Csound-tekno Search About

Re: Simple question: a pitch of audio sample.

Date1999-01-25 16:49
FromMike Berry
SubjectRe: Simple question: a pitch of audio sample.
	In most cases, the pitch of a sample is not an objective measurement. 
It is simply a basis for choosing a playback speed.  For instance, if I
say a sample is 200 Hz (no matter what the audio data is), then if I ask
to play it back at 400 Hz., it will be played at twice speed, or one
octave up.  If I changed the original setting to 100 Hz., then the
playback would be up 2 octaves.  All of this is irrespective of the
content of the sample.
	In some cases, the audio in the sample does have a single, discernable,
pitch.  An example would be a multi-sampled piano sampler, which often
has a different sample for each note.  Then the sample has the pitch
corresponding to its note.  But even here, that is only for use in
determining the relative speed change if the note is transposed up or down.
	So basically, unless there is a clear, single, unchanging, pitch in
your sample, you can make the frequency anything you want, as long as
you remember what you made it when you want to play it back at another pitch.
-- 
Mike Berry
mikeb@nmol.com
http://www.nmol.com/users/mikeb