creates an object that plays as a sound whose amplitude is given by the sequence of levels ai.

Details and Options

  • ListPlay returns a Sound object, which displays in StandardForm as a button that can be clicked to play the sound.
  • The following options can be given:
  • DisplayFunctionAutomaticfunction for generating output to display
    PlayRangeAllthe range of amplitude levels to include
    SampleDepth8how many bits to use to represent each amplitude level
    SampleRate8000how many times per second amplitude samples should be generated
  • ListPlay[{list1,list2}] generates stereo sound. The lefthand channel is given first.
  • ListPlay[{list1,list2,}] generates sound on any number of channels. If the lists are of different lengths, silence is inserted at the ends of the shorter lists.


open all close all

Basic Examples  (2)

Play random noise:

Click for copyable input

Play random noise with a sample rate of 4096 Hz:

Click for copyable input

Scope  (1)

Applications  (6)

Properties & Relations  (1)

Introduced in 1991
Updated in 2007