This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Getting Started / Working with Notebooks /

Animating Graphics and Playing Sound

You can run any sequence of graphics as a movie. The movie appears in the most visible cell in the sequence. You can also play sounds if your computer has audio hardware installed.


To animate a set of graphics:

1. Create each frame of the animation—for example, by using a Do loop.

2. Select the cell bracket that contains all the graphics cells.

3. Choose Cell RightTriangleAnimate Selected Graphics, or double-click any graphic. The animation appears in the most visible cell of the selected graphics.

TIPS

Bullet For a smooth animation, align the graphics, select the cell bracket that contains all the graphic cells, and choose Cell RightTriangleAlign Selected Graphics.

Bullet When you animate graphics, a control bar appears at the bottom of the notebook. This bar allows you to control the speed and direction of the animation.


To play sound:

1. Use Play or ListPlay to create a sound.

2. To play the sound, double-click the speaker image at the top of the cell bracket.

To adjust the sound volume:

Windows: Click the speaker icon located in the lower right-hand corner or use the volume control in the (Sounds and) Multimedia items in the Control Panel.

Macintosh: Use the Sound item in System Preferences to control the volume.

TIPS

Bullet You must have speakers to play sounds.

BulletWindows and Macintosh: If your system has audio input hardware, you can record sounds in Mathematica using Input RightTriangleRecord Sound.

BulletUnix: Sound is not supported under Digital Unix or AIX.


For more information

BulletAnimation and sound: The Mathematica Book, Sections 1.9.11 and 1.9.12.