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

  • SampleDepth is an option for sound primitives which specifies how many bits should be used to encode sound amplitude levels.
  • The default setting is SampleDepth -> 8.
  • With the default setting, 256 distinct sound amplitudes are allowed.
  • See the Mathematica book: Section 2.9.18.
  • See also: PlayRange, SampleRate.

    Further Examples

    Here is a frequency-modulated tone.

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

    In[1]:=

    Reducing the SampleDepth makes the computations faster at the cost of reducing the quality of of the sound.

    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.