Sound#

Play Sound#

The Play Sound block is used to play a sound effect that is selected from the EXP Brain’s built-in speakers.

This is a non-blocking command and allows any subsequent commands to execute without delay.

Play Sound block interface showing sound effect options for the EXP Brain's built-in speakers.

Select which sound effect to play:

  • siren

  • wrong way

  • wrong way (slow)

  • fill up

  • headlights on

  • headlights off

  • tollbooth

  • alarm

  • tada

  • door close

  • ratchet

  • wrench

  • siren2

  • ratchet2

  • alarm2

  • power down

Image of the Play Sound block interface for selecting sound effects in the EXP Brain's programming environment.

In this example, the EXP Brain will play the alarm2 sound.

Image of the Play Sound block from the EXP Brain, demonstrating how to select and play sound effects like alarm2.

Play Note#

The Set Electromagnet Power block is used to play the selected musical note from the EXP Brain’s built-in speakers.

This is a non-blocking command and allows any subsequent commands to execute without delay.

Image of the Play Note block from EXP Brain, used to play selected musical notes with adjustable durations.

Choose a musical note.

Icon representing the Play Note" function for selecting and playing musical notes on the EXP Brain's speakers.

Choose the duration (how long) the note will play.

  • A whole note plays for 1 second.

  • A half note plays for 0.5 seconds.

  • A quarter note plays for 0.25 seconds.

Diagram illustrating note durations for the EXP Brain: whole, half, and quarter notes with corresponding time values.

In this example, the EXP Brain will play a whole G note.

Image showing the EXP Brain playing a whole G musical note using the Set Electromagnet Power block.