2nd Semester Intro to Computer Science

What you will learn

Reading

Do Now

  1. Read through and participate in the following lessons in EarSketch Editor

  2. In your notebook, write down answers the following questions:

    • What are three examples of effects used in music production and available in EarSketch?
    • Write down how you would use the setEffect() function to change the volume level of track 4 to a value of -15.0.
    • For most songs, how many beats make up one measure?
    • What is the purpose of the 0, +, and - symbols when used in an EarSketch beat strings

Lab

Beat Strings

In your Notebook

Beat strings are made up of combinations of three different characters In your Notebook, Explain the rhythmic meaning of each of the characters

  1. “0”
  2. “+”
  3. “-”

Lab Activity

Create a new EarSketch project using the following requirements

  1. Include your name and a project description at the top of the file.
  2. This project should have 4 tracks and be 12 measures in length.
  3. Each track should use a different/unique audio sample.
  4. Create 4 variables that hold audio loop constants.
  5. Create 1 variable that holds a beat string.
  6. On one track, use the makeBeat() function with your beat string.

    • Your beat string rhythm should repeat for all 12 measures of the project.
  7. Use the setEffect() function for at least one track.
  8. Make sure to use comments that outline and describe your code.

The above is taken from the earsketch teaching resources.

Check your understanding

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

1. What is tempo?

  • The number of tracks in a song
  • The length of a song in measures
  • The pattern of a beat string
  • The speed of the music, in beats per minute

Tempo sets how fast the beats go by, measured in beats per minute (BPM).

2. What is the job of makeBeat()?

  • Build a rhythm on a track from a beat string
  • Change the volume of a track
  • Define a new variable
  • Add a copyright notice

makeBeat() turns a beat string into a rhythm on a track using a sound you give it.

3. What does setEffect() do?

  • Creates a new beat string
  • Starts a loop
  • Changes how a track sounds, such as its volume

setEffect() adjusts a track's sound with an effect like volume instead of adding new audio.

Downloads