Calling a function
A name followed by parentheses is a function call — a command. kick(1) calls the kick function and hands it one input: which beat to play on.
Lesson 2: four lines of code, your first rock beat.
kick(1) kick(3) snare(2) snare(4)
Challenge A:Play the kick (the bass drum) on beat 1. Type kick(1) and press Run.