Beep Note () For () Secs
beep note () for () secs :: ev3
Category EV3
Type Stack
Introduced in 3.0

The beep note () for () secs block is a stack block and a LEGO MINDSTORMS EV3 block. The block beeps the specified MIDI note on the EV3 unit for the specified number of seconds.

Example Uses

Some uses for the beep note () for () secs block are:

  • Playing music can be done as shown below:
when green flag clicked
beep note (60) for (0.5) secs :: ev3
beep note (60) for (0.5) secs :: ev3
beep note (67) for (0.5) secs :: ev3
beep note (67) for (0.5) secs :: ev3
beep note (69) for (0.5) secs :: ev3
beep note (69) for (0.5) secs :: ev3
beep note (67) for (1.0) secs :: ev3
beep note (65) for (0.5) secs :: ev3
beep note (65) for (0.5) secs :: ev3
beep note (64) for (0.5) secs :: ev3
beep note (64) for (0.5) secs :: ev3
beep note (62) for (0.5) secs :: ev3
beep note (62) for (0.5) secs :: ev3
beep note (60) for (1.0) secs :: ev3
  • Setting an alarm is possible with these blocks:
when distance [< v] (30) :: ev3 hat
repeat (50)
    beep note (88) for (1) secs :: ev3
    wait (0.5) seconds
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.