home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / alt / sys / amiga / demos / 2012 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  2.2 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!edcastle!dcs.ed.ac.uk!jxp
  2. From: jxp@dcs.ed.ac.uk (Joe Potter)
  3. Newsgroups: alt.sys.amiga.demos
  4. Subject: Re: Source of Problem (was Re: Criti!)
  5. Message-ID: <BzCoEx.K74@dcs.ed.ac.uk>
  6. Date: 16 Dec 92 11:40:08 GMT
  7. References: <doug.04ou@dsij.uucp> <1992Dec14.174633.25907@tdb.uu.se> <1992Dec15.054434.26886@u.washington.edu>
  8. Sender: cnews@dcs.ed.ac.uk (UseNet News Admin)
  9. Organization: Department of Computer Science, University of Edinburgh
  10. Lines: 36
  11.  
  12. In article <1992Dec15.054434.26886@u.washington.edu>, foregone@stein.u.washington.edu (Carl Chavez) writes:
  13. > You know, I think the main problem is that some people don't understand
  14. > what a sample is. To the laypeople or hobby programmer (like me), a sample is
  15. > something recorded, and a simple electrical click or wave is a sound. To the
  16. > demo coders, a sample is *anything* generated by a computer.
  17. > Could somebody give the *real* definition of "sample"?
  18.  
  19.     Deja vu, anyone?
  20.  
  21.     A single sample refers to an instantaneous capture of a waveform's
  22. amplitude at some specified instant.  A table can be built up of all such
  23. captures over short time delays, and then can be replayed by changing the
  24. signal level to a loudspeaker to values obtained from the table at a rate
  25. identical to the "short time delays" referred to above.  The table is referred
  26. to as a sampled sound, often abbreviated to just "sample."
  27.  
  28.     An example:  waveform is 100*sin(t*2*pi)
  29.  
  30.     We set the "short time delays" to be 0.01, then record 100 samples of
  31. the function setting t to 0.00, 0.01, 0.02, ... , 0.98, 0.99.  Now we've got a
  32. table of 100 values between 0 and 100.  Then, we can send these table values to
  33. the D to A converter at any rate we choose and have a sine wave!
  34.  
  35.     Usually, sampled sounds are captured by using an A to D converter on an
  36. analogue input signal from an instrument.  However, it's valid to sample any
  37. continuous function in this manner, generating a discontinuous "approximation"
  38. whose error (called aliasing distortion) has a frequency greater than audible
  39. sounds (~20kHz).  In this way, a computed sound can be generated and replayed
  40. on the Amiga.
  41.     And, contrary to my previous post which everyone ignored, computed
  42. sounds ARE sampled sounds.
  43.  
  44.                             Joe.
  45.  
  46. "What the f--k was all that about?"
  47.