Module 2:  Adding Some Beats

This  50 minute module will introduce students to different techniques to add variety and repetition to their song.  Students will also learn how increase their code complexity and efficiency through using strings and loops.

By the end of the second module, students should be able to record and upload their own sounds,  create custom rhythms through the function makeBeat(), and implement repetition in their song through the use of a for-loop.


  • Navigate the process of uploading their own sounds and mixing them with provided EarSketch sound clips. 

  • Identify strings as a data type often used to represent non-numerical data. 

  • Demonstrate how strings are used with the makeBeat function to create rhythmic patterns in EarSketch 

  • Understand how makeBeat can create a more interesting beat through remixing. 

  • Recognize the importance of using repetition in their composition to draw the listener into the song. 

  • Execute the use of the for-loop to code a section repeatedly, creating more efficient code.


CSP Standards

Key Terms


AP CSP Essential Knowledge


Lesson Flow

I'm a paragraph. Click here to add your own text and edit me. It's easy.


  • Review Module 2 in the EarSketch Curriculum (Chapter 40)  

  • Trying adding uploaded sounds, makeBeat (), and loops to your code/song

  • Download Teacher Guide- Module 2 

Explore (40.2)

  • Students explore how to upload sounds in EarSketch that are not in the EarSketch Library and practice recording their own sound 

Explore (40.4)

  • Students learn about the function makeBeat () and how to remix note by note to create custom rhythms. 

  • Students learn that makeBeat() is a string data type and experiment with different strings in their script. 

Explore (40.6)

  • Students listen to examples of repetition in Ciara's song "Set" and learn how to implement repetition in their own song using a for-loop

  • Students experiment with a sample for-loop in their script using the makeBeat() function 

Elaborate (40.8)

  • Students will learn how to review and edit their code for errors.  They will learn how to detect errors and respond to them through debugging.

Engage (40.1)

  • Students are introduced to new tools in EarSketch where they can add some of their individual style to the remix. 

  • They will be motivated to upload new sounds,  use the function makeBeat(), and code for loops to create repetition in their song. 

Explain (40.2 and 40.3)


  • Students learn about copyright and also how to import their uploaded sounds into their sound library to use in their code. 

Explain (40.5 )

  • Students learn how to code the makeBeat() function (using four arguments)  in their script

Explain (40.7 )

  • Students learn how to write the code to insert for-loops in their script.

  • Students will apply this knowledge by editing their script to insert a new for-loop in their song. 

Evaluate (40.9)

  • Students edit their code for complexity and efficiency. They use the code indicator to evaluate their current script and edit to increase complexity and efficiency.