Sound

From StarLogo Nova Wiki
Other languages:
The Sound Block

Returns the sound selected from the dropdown menu.

Usage

Returns the selected sound. You can upload or record your own sounds, or select one from a library of pre-loaded sounds.

Syntax

Inputs in this block:

  1. a sound from the dropdown menu

Example

The image above is from a predator-prey simulation where a dog agent hunts many smaller cat agents. On collision with a dog, the cat agents will play an audio recording of a cat meowing.

Related Blocks