2nd Semester Intro to Computer Science

Teacher Curriculum Map · Student Lesson 5.01 · Original slides

Historical TEALS lesson. Review outdated tools and external links before teaching.

Lesson 5.01: Earsketch Intro

Note: Unit 5 involves a tool called EarSketch from Georgia Tech. EarSketch is a Digital Audio Workstation with an embedded scripting environment that supports Python or Javascript. Using EarSketch, students can create songs by writing Python code. All of the Earsketch activities require you to use the EarSketch Editor instead of the IDE you have been using so far (e.g. Repl.it).

Learning Objectives

Students will be able to…

Materials/Preparation

Pacing Guide

Duration Description
5 Minutes Do Now
15 Minutes Lesson
30 Minutes Lab
5 Minutes Debrief

Instructor’s Notes

1. Do Now

2. Lesson

Activity

Copy the following code from the reading above into the EarSketch Editor:

# script_name: Intro_Script
#
# author: The EarSketch Team
#
# description: This code adds one audio clip to the DAW
#
#
#

#Setup Section
from earsketch import *
init()
setTempo(120)

#Music Section
fitMedia(TECHNO_SYNTHPLUCK_001, 1, 1, 9)

#Finish Section
finish()

In their Notebooks, ensure students have the following terms defined

Digital Audio Workstation (DAW)

Sound Browser

Sounds Tab: Here, you can browse and search a collection of short pre-made audio clips for you to use in your music.

Scripts Tab: A list of your saved EarSketch projects. Each script is a separate music project. Click a project title to open it in a new tab (in the code editor panel).

API Tab: A description of every EarSketch function. We will return to this in later lessons.

Code Editor: A text editor with numbered lines. Type your code here, press “Run”, and it will turn into music in the DAW.

Console:

setTempo(): comes with a default argument of 120, but let’s change it to 100. This sets the tempo of our project to 100 beats per minute. As you can see, the name of a function tells you what it does.

fitMedia(): to add sound to the DAW. fitMedia() requires four arguments: clip name; track number; starting measure; ending measure. In other words, you tell it the name of the audio clip you want to add to the DAW, which track to put it on, and which measures to put it between. For now, just type in fitMedia() without any arguments.

3. Lab

4. Debrief

Accommodation/Differentiation

Students that are moving quickly can read additional documentation on the EarSketch website in order to move ahead and expand their skills and understanding.

Some students may need reminders about certain music terminology (tempo, measure, beat, etc.).

Forum discussion

Lesson 5.01: Earsketch Intro (TEALS Discourse Account Required)