home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / multimed / 2461 < prev    next >
Encoding:
Text File  |  1992-08-21  |  3.6 KB  |  79 lines

  1. Newsgroups: comp.multimedia
  2. Path: sparky!uunet!email!eichow.tuwien.ac.at!MARTIN
  3. From: martin@eichow.tuwien.ac.at (Martin Schoenhacker)
  4. Subject: Re: SoundBlaster sampling frequency accuracy
  5. Message-ID: <1992Aug21.113836.20589@email.tuwien.ac.at>
  6. Sender: news@email.tuwien.ac.at
  7. Nntp-Posting-Host: eichow.tuwien.ac.at
  8. Reply-To: martin@eichow.tuwien.ac.at
  9. Organization: Tech. University Vienna, Dept. of Computergraphic
  10. References: <1992Aug20.084909.5385@kth.se>,<172af8INNllp@ensta.ensta.fr>
  11. Date: Fri, 21 Aug 1992 11:38:36 GMT
  12. Lines: 65
  13.  
  14. Gilles recently brought the following to us:
  15.  
  16. >In article <1992Aug20.084909.5385@kth.se> pesjogre@nada.kth.se (Peter Sj{gren) writes:
  17. >>Hi,
  18. >>
  19. >(... DELETED ...)
  20. >>
  21. >>I therefore wonder about the accuracy of the sampling frequency and other
  22. >>data on this model (1.5) and if they are better on later versions.
  23. >>
  24. >        Ah, I suggest you read the programmers manual of the Sound Blaster...
  25. >I don't have it at work with me, but you'll notice that the sampling
  26. >frequency is stored in a specific format... Just count the bits, and you'll
  27. >get the acuracy with which the sampling frequency is defined... That should
  28. >help you...
  29. >
  30. >        As an example, say you're using 8 bits to define a frequency... And
  31. >Your Frequence can go from 0 to 22000 Hz... Then you have a 86 Hz acuracy.
  32. >At 11000 KHz, it's 43 Hz...  And so on... 440 Hz give 2 Hz accuracy.
  33. >
  34. >        Does this help?
  35.  
  36. No, sorry, it doesn't. There seems to be a misunderstanding here, so let me
  37. have a go on getting this straight ...
  38.  
  39. The sampling frequency (e.g. 11000 Hz [not KHz as in your post]) defines how
  40. often the sound card will sample its input channel, acquiring an 8-bit sample
  41. (i.e. for the standard Soundblaster models). This sample corresponds to the
  42. signal level on the input line, NOT to a frequency.
  43.  
  44. If someone uses this mechanism to record a 440 Hz tone, the sound card samples
  45. a waveform which eventually should turn out to contain 440 full sinusoidal (or
  46. the like) waves per second. Please note there was no need to talk about a
  47. specific sampling frequency until now.
  48.  
  49. If the sample get replayed (or edited), the input sampling frequency becomes
  50. important, since it will tell you how many of the sampled values should be
  51. reproduced to the sound card speaker in unit time. And if that goes wrong,
  52. i.e. more or less samples are being replayed per second than have been
  53. recorded, there is a frequency shift between input and output signals.
  54.  
  55. For example, if a 440 Hz tone has been recorded at a sampling frequency of
  56. 11000 Hz, but is being replayed at an output sample frequency of just
  57. 10900 Hz, then the tone you hear will just contain 436 cycles per second,
  58. i.e. 436 Hz.
  59.  
  60. So the problem is not one of using 8 bits, as in your example, to represent
  61. the 440 Hz out of 22 kHz one might want to record, which would give a 86 Hz
  62. inaccuracy and render the sound card unusable. Rather, it is one of getting
  63. the input and output sampling frequencies to be the same.
  64.  
  65. Sorry I can't answer the original question about this phenomenon, but I hope
  66. to have clarified what the question was about at all.
  67.  
  68. All the best,
  69.  
  70.                    Martin
  71.  
  72.  -----------------------------------------------------------------------
  73. | Martin Schoenhacker     |  Lagerhausstrasse 19, A-3580 Horn, Austria  |
  74. |-------------------------|---------------------------------------------|
  75. | A U S T R I A  --       |  E-Mail:  schoenhacker@eichow.tuwien.ac.at  |
  76. |   In the very Heart of  |  Phone:   +43 (1) 58801 / 4117              |
  77. |     E  U  R  O  P  E    |  Fax:     +43 (1) 504 25 83                 |
  78.  -----------------------------------------------------------------------
  79.