Beep Note () For () Secs | |
beep note () for () secs | |
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 beep note (60) for (0.5) secs beep note (67) for (0.5) secs beep note (67) for (0.5) secs beep note (69) for (0.5) secs beep note (69) for (0.5) secs beep note (67) for (1.0) secs
- Setting an alarm is possible with these blocks:
when distance \< (30) repeat (50) beep note (88) for (1) secs wait (0.5) seconds end