2nd Semester Intro to Computer Science

What you will learn

Do Now

  1. Begin reading the following lessons in the EarSketch documentation in Unit 3.

  2. Write down 2-3 songs that have a structure that you could emulate in EarSketch.
  3. For one of those songs write down the different musical parts of the song, in order. This most likely will include verses, the chorus, and the bridge.

Example

Using Pharrell Williams’ “Happy”:

Note: No intro or outro in this song.

The above is taken from the earsketch teaching resources.

Project

Overview

Using Python and EarSketch you will create a complete song consisting of 2 verses, a chorus, and a bridge. We have worked in class to practice creating sections of songs. We’ll use that knowledge to create a song using the samples we are given.

Behavior

Implementation Details

The above is adapted from the earsketch teaching resources.

Rubric

Student Name: ___________ Date: ________

Functional Correctness(Behavior) Points Points Earned
Song Runs and Plays 5  
Recognizable Chorus vs Verse 10  
Correct Length 5  
Contains some reoccurring themes 5  
Sub total 25  
Technical Correctness    
Correct use of loop 5  
Correctly uses control flow 5  
Correctly use of fitMedia, makeBeat, setEffect 10  
Use of user defined functions for choruses, forms, verses 10  
Keeps track of measure using return statements 15  
Sub total 45  
Total 70  

Final Grade

Points Possible Points Earned Percentage
70    

Check your understanding

Pick an answer for each question. You can try again until you get it right.

1. Why plan a song’s sections, in order, before writing code?

  • EarSketch will not run without a plan
  • It shows which functions you need and how they fit together
  • It makes the song longer
  • It replaces the need for comments

Listing the parts in order lets you turn each into a function and call them in the right sequence.

2. If each section function returns the measure where it ended, what is that useful for?

  • Changing the tempo
  • Stopping the song
  • Making the section louder
  • Knowing where the next section should start

The returned measure tells the next section where to begin so sections do not overlap or leave gaps.

3. What do you gain by reusing a chorus function each time the chorus returns?

  • The chorus stays consistent and you write the code only once
  • The chorus gets a different sound each time
  • The song becomes shorter automatically
  • Variables are no longer needed

Calling one function repeatedly keeps the repeated section identical and easy to update in one place.

Downloads