Sound

From StarLogo Nova Wiki
Revision as of 19:09, 14 August 2023 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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