In a program, you can define a variable like
b to represent a phrase, and use it wherever needed, for example
p.play b+b+b on line 22. How many repeats of
b are needed for Katy Perry's Teenage Dream?
Experiment by changing some of the chords in
b or substituting rests. It will line up best if you make sure the variable is still eight beats of music! Can you give the song a different feel just by changing