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
WHAT IS CODE?
CODE AND MUSIC: WHAT’S THE CONNECTION
Why is coding important to the future of the music industry?
Why Every Band Needs a Computer Coder
Composing Code: Why Musicians Make Great Software Developers
Composing in Code: Musician-Programmers are Changing the Way Music is Made
CODE AND MUSIC: WHAT’S THE CONNECTION
HIT MUSIC:
NO INSTRUMENTS NEEDED
WELCOME TO EARSKETCH
WHAT IS CODE?
A set of instructions for a computer to perform
DANCE STEPS:
RECIPE:
CODING: JUST LIKE CHA-CHA SLIDE
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!
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”
EarSketch Training | 11.06.2020
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:
READY TO COMPOSE AND CODE?
Go to:
Click: Click:
GETTING STARTED: CREATING AN ACCOUNT AND LOGIN
EarSketch Training | 11.06.2020
VIDEO: CREATE AN ACCOUNT
BUILD YOUR TOOLBOX TO MAKE BEATS:
Term | Definition |
| �Specialized computer software for recording, editing, and playing digital audio files.� |
DIGITAL AUDIO WORKSTATION�(DAW)
DAWS: Producing from your Laptop
EARSKETCH QUICK TOUR
CLICK on the GEAR
CLICK on “Start Quick Tour”
BUILD YOUR TOOLBOX TO MAKE BEATS:
Term | Definition |
| �A series of instructions carried out in a specific order by a computer.� |
SCRIPT
GETTING STARTED: CREATING A NEW SCRIPT
EarSketch Training | 11.06.2020
GETTING STARTED: CREATING A NEW SCRIPT
Name your script “EarSketch First Script” and choose your programming language.
EarSketch Training | 11.06.2020
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 .
SCRIPT BROWSER
All scripts are automatically saved in this folder for you to access every time you login.
EarSketch Training | 11.06.2020
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
RUN YOUR CODE
EarSketch Training | 11.06.2020
CONSOLE
Console
Tells about errors
EarSketch Training | 11.06.2020
PLAY YOUR MUSIC
Play
Rewind
Metronome
Volume
Solo or Mute
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)
EARSKETCH SOUND BROWSER
Rewind
Metronome
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.
KEEP CODING
Rewind
Metronome
CONGRATULATIONS! You have coded six tracks of your song!
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
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”
CONGRATULATIONS!
You have successfully:
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