This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Graphics and Sound / Sound Primitives  /

  • 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).



    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.