1 of 32

INTRODUCTION TO EARSKETCH

OBJECTIVE

Students learn how to navigate the Earsketch platform and run a basic script.

AGENDA:

Engage: Coding and Music: What is the Connection?

Explore: Navigate the EarSketch Workspace

Explain: Creating a Script

Elaborate & Evaluate: Coding in EarSketch

2 of 32

WHAT IS CODE?

CODE AND MUSIC: WHAT’S THE CONNECTION

3 of 32

CODE AND MUSIC: WHAT’S THE CONNECTION

4 of 32

HIT MUSIC:

NO INSTRUMENTS NEEDED

5 of 32

WELCOME TO EARSKETCH

6 of 32

WHAT IS CODE?

A set of instructions for a computer to perform

DANCE STEPS:

RECIPE:

7 of 32

CODING: JUST LIKE CHA-CHA SLIDE

8 of 32

CODING - JUST LIKE CHA-CHA SLIDE

Using code or “functional notation,” describe one dance move instruction on each line, using the following format:

action(body part, direction, number of times)

Code a dance that is at least 8 lines long!

9 of 32

CODING- JUST LIKE CHA-CHA SLIDE

Try out my example, then write your own! �Add a # on any line that you find an error and don’t want to “run”

  1. clap(hands,together, 8)
  2. step(left foot, left, 1)
  3. step(right foot, backward, 1)
  4. hop(both feet, forward, 1)
  5. hop(both feet, forward, 1)
  6. stomp(left foot, down, 1)
  7. chaCha(whole body, in place, 2)

EarSketch Training | 11.06.2020

10 of 32

Term

Definition

A process or set of rules to be carried out by a computer/person . Algorithms can be written with computer code.

ALGORITHM

BUILD YOUR TOOLBOX TO LEARN CODE:

11 of 32

READY TO COMPOSE AND CODE?

Go to:

Click: Click:

12 of 32

GETTING STARTED: CREATING AN ACCOUNT AND LOGIN

EarSketch Training | 11.06.2020

13 of 32

VIDEO: CREATE AN ACCOUNT

14 of 32

BUILD YOUR TOOLBOX TO MAKE BEATS:

Term

Definition

Specialized computer software for recording, editing, and playing digital audio files.

DIGITAL AUDIO WORKSTATION�(DAW)

15 of 32

DAWS: Producing from your Laptop

  • What are the advantages to producing music on a phone or laptop
  • What DAW is Oak using?
  • How does the DAW help Oak produce music?
  • What is surprising about the Gospel Choir in Demi Lovato's song "Sorry not Sorry"?
  • How is the technology the great equalizer?

16 of 32

EARSKETCH QUICK TOUR

CLICK on the GEAR

CLICK on “Start Quick Tour”

17 of 32

BUILD YOUR TOOLBOX TO MAKE BEATS:

Term

Definition

A series of instructions carried out in a specific order by a computer.

SCRIPT

18 of 32

GETTING STARTED: CREATING A NEW SCRIPT

EarSketch Training | 11.06.2020

19 of 32

GETTING STARTED: CREATING A NEW SCRIPT

Name your script “EarSketch First Script” and choose your programming language.

EarSketch Training | 11.06.2020

20 of 32

Comments Section: Notes about your code You can add your name or the title of the code here.

Setup Section This code tells the Digital Audio Workstation (DAW) how to prepare to make music. setTempo() allows you to choose a tempo (beats per minute) for the project.

Music Section: The most important section. All of the details of your code and composition go here.

SECTIONS OF A SCRIPT

COMMENTS .

SETUP SECTION .

MUSIC SECTION .

21 of 32

SCRIPT BROWSER

All scripts are automatically saved in this folder for you to access every time you login.

EarSketch Training | 11.06.2020

22 of 32

CODING AND COMPOSING

Type this code into your script on line 13.

#music section

fitMedia(RD_UK_HOUSE_MAINBEAT_8, 1, 1, 9)

fitMedia(RD_POP_SYNTHBASS_6, 2, 1, 9)

fitMedia(YG_FUNK_CONGAS_3, 3, 1, 9)

You can also import from this link : bit.ly/3UTFRNQ

23 of 32

RUN YOUR CODE

EarSketch Training | 11.06.2020

24 of 32

CONSOLE

Console

Tells about errors

EarSketch Training | 11.06.2020

25 of 32

PLAY YOUR MUSIC

Play

Rewind

Metronome

Volume

Solo or Mute

26 of 32

MAKE MORE BEATS

Type this code into your script on line 17.

EarSketch Training | 11.06.2020

fitMedia(sound, 4, 1, 9)

fitMedia(sound, 5, 1, 9)

fitMedia (sound, 6, 1,9)

27 of 32

EARSKETCH SOUND BROWSER

Rewind

Metronome

  1. Click on the headphones icon in the left menu

  1. Highlight the word “sound” on line 17

  1. Use the filter to search for a sound or click Sound Collection to see the sounds.

28 of 32

EARSKETCH SOUND BROWSER

Rewind

Metronome

4. Use the green play button to listen to the sound clip

5. Use the blue clipboard to paste the sound clip into your fitMedia() function.

29 of 32

KEEP CODING

Rewind

Metronome

  • Click and then to listen to your code.

  • Repeat this on lines 18 and 19.

CONGRATULATIONS! You have coded six tracks of your song!

30 of 32

CURRICULUM AND API

EarSketch Training | 11.06.2020

Toggle the curriculum tab to read more about EarSketch and watch video tutorials.

Select the API folder to learn about the collection of EarSketch tools

31 of 32

CODING AND COMPOSING

On line 20 , type:print “Your name is a coder”��ex. If my name was Pharrell, I would write on line 20 - print “ Pharrell is a coder”

EarSketch Training | 11.06.2020

“YOU ARE A CODER”

32 of 32

CONGRATULATIONS!

You have successfully:

  • Connected Code and Music
  • Created an EarSketch Account
  • Opened a Script
  • Learned the sections of a script
  • Run your code
  • Played your music
  • Learned to look at the console for errors.
  • Learned about the resources in the API and Curriculum folder

Now it’s time to start coding your own song. You can create a new script or use this sample code to get started:

https://tinyurl.com/TRTRcode