Music Lab Documentation

Trigger

Category:Control

Code connected to this block will play at the next measure when the associated button is pressed on the beat pad. This lets you play parts live as the track is playing. You can also press the "1" through "6" keys on your keyboard to trigger these buttons.

Parameters

NameTypeRequired?Description
button

The number of the button that, when pressed, will run this code

Found a bug in the documentation? Let us know at support@code.org.