Plays a sound effect with optional volume and pitch inputs and outputs the channel the sound is played on. Use the settings to change which sound effect is played.

Inputs:

  • Volume: ranges from 0 to 1 (inclusive).
  • Pitch: ranges from 0 to 4 (inclusive).

Output:

  • Channel: When all channels are occupied or sounds are turned off in fancade settings, it outputs -1. Otherwise, it outputs a non-negative integer where the sound is occupied from 0 to 9 (inclusive). Used in conjunction with Volume Pitch.

Notes

  • Unlike most other blocks, a wire connected to Before is required for it to do anything, it does not run automatically.

  • The rightmost setting displays which sound effect is played. Tap to change.

    Checking Loop will make the sound repeat on the chosen channel until stopped with Stop Sound. A looping channel becomes occupied until it is stopped, meaning other Play Sound blocks will not choose that channel.

Related