ListPlay

ListPlay[{a1,a2,}]

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.

Examples

open allclose all

Basic Examples  (2)

Play random noise:

In[1]:=
Click for copyable input
Out[1]=

Play random noise with a sample rate of 4096 Hz:

In[1]:=
Click for copyable input
Out[1]=

Scope  (1)

Applications  (6)

Properties & Relations  (1)

See Also

Play  Sound  EmitSound  Beep  SampledSoundList  SystemDialogInput  ListAnimate

Tutorials

Introduced in 1991
(2.0)
| Updated in 2007
(6.0)