WLJS LogoWLJS Notebook

ListPlay

ListPlay[{a1, a2, ...}] creates an object that plays as a sound whose amplitude is given by the sequence of levels ai.

Examples

Play a waveform:

ListPlay[Table[Sin[2 Pi n/100], {n, 0, 8000}]]

Random noise:

ListPlay[RandomReal[{-1, 1}, 44100]]

Imported audio samples:

ListPlay[AudioData[ExampleData[{"Audio", "Bird"}]][[1]]]

Please visit the official Wolfram Language Reference for more details.

On this page