This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 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]:=