Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Graphics and Sound / Sound Primitives  /
SampleRate

  • SampleRate is an option for sound primitives which specifies the number of samples per second to generate for sounds.
  • The default setting is SampleRate -> 8192.
  • The highest frequency in hertz that can be present in a particular sound is equal to half the setting for SampleRate.
  • See the Mathematica book: Section 1.9.13.
  • See also: SampleDepth.

    Further Examples

    This gives the rate at which functions are sampled to produce sounds (this number will be different on different platforms).

    In[1]:=

    Out[1]=

    You will get noise by playing a sound that oscillates at close to the sample rate.

    Evaluate the cell to see the graphic and hear the sound.

    In[2]:=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.