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 Generation  /
Play

  • Play[ f , t , tmin , tmax ] plays a sound whose amplitude is given by f as a function of time t in seconds between tmin and tmax.
  • Play evaluates its arguments in a non-standard way (see Section A.4.2).
  • Play[ , , t , tmin , tmax ] produces stereo sound. The left-hand channel is given first.
  • Play[ , , ... , ... ] generates sound output on any number of channels.
  • The following options can be given:
  • Play returns a Sound object.
  • See the Mathematica book: Section 1.9.13.
  • See also: ListPlay, SampledSoundFunction, Show.
  • Related packages: Miscellaneous`Audio`, Miscellaneous`Music`.

    Further Examples

    This creates a pure tone that oscillates at 220 cycles per second (A below middle C).

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

    In[1]:=

    This plays the sound of a function across a singularity.

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

    In[2]:=