Do Now: 5.04
- Begin reading section 3.3 of the EarSketch documentation in Unit 3.
- Answer the following questions, based on the reading:
- Why might it be useful to group sections of music into functions?
- Write the code for defining a
verse()
function that takes in 5 parameters:drums
,guitar
,bass
,startMeasure
, andendMeasure
.
- Why might it be useful to group sections of music into functions?