1 of 31

1

MAKE BEATS. LEARN CODE. PROMOTE EQUITY.

v3.1

2 of 31

2

CODE TO COMPETE

  • You will use Georgia Tech’s EarSketch Platform to code a unique remix that demonstrates awareness and calls for action!
  • Winners will be selected in August.
  • 50 students will win prizes, and the top students will win a $5000 scholarship or grant to start a business!

v3.1

3 of 31

{

}

3

How are music, computer science, �activism and entrepreneurship �pathways to promote racial equity?

Creating a Soundbank, Variables, & Tracks,

v3.1

4 of 31

Learn about Canadian and Indigenous history, focusing on the effects of colonization as well as racism today. ��

AGENDA

  • Intro to Layering Music
  • Creating your SOUNDBANK
  • Assigning Variables to your Sound Clips
  • Adding Sound Clips to your Tracks
  • Recording & Adding a Sound to EarSketch
  • Build your Vocabulary
  • Reflect on your song creation process

4

OBJECTIVE

MODULE 4 - CREATING A SOUNDBANK, VARIABLES, & TRACKS

v3.1

5 of 31

5

1. LAYERS OF MUSIC

v3.1

6 of 31

6

Watch this video on layering music

Afterwards, listen to Samian “Peuple Invincible”, as you listen list all the instruments/sounds (layers) that you hear in your Student Writing Activity Workbook, then compare notes as a class to see how many tracks you think were needed to create the song.

v3.1

7 of 31

BUILD YOUR VOCABULARY TO MAKE BEATS

7

Term

Definition

A part of a song that is recorded separately as a musical clip and added to a piece of music. In a Digital Audio Workstation (DAW), tracks are arranged in rows and labeled with numbers.

TRACK

v3.1

8 of 31

8

2. CREATING SOUNDBANK & VARIABLES

v3.1

9 of 31

9

Follow the instructions on the slides or in your Student Coding Activity Workbook.

  1. Create a new script called Your Voice is Power [Your Initials]. Don't include the brackets [ ] in the script name!
  2. Type #SOUNDBANK in the CODE EDITOR after setTempo(120).
    • Because you used a # , it becomes a comment so won't run like the other code.
    • Your #SOUNDBANK will be like a drawer that holds your selected sound clips. You will go into that drawer and place those sounds in your song when and where you want them.

v3.1

10 of 31

10

Add a drum and a vocal sound to your #SOUNDBANK

  1. Select SOUNDS (headphones icon) in the CONTENT MANAGER to open Sound Browser.
  2. Search for sounds, by artist, genre, and instrument.
  3. Use the green play button next to the name of the sound clip to listen to it.
  4. Find a drum and a vocal sound.
  5. Select the line below #SOUNDBANK. Then, select the BLUE CLIPBOARD to paste the first sound clip into your code editor.
  6. Repeat this process to add the second sound clip.

Note: You can use comments to create sections in your #SOUNDBANK for each category of sound

For example:

#drums�#vocals

#strings

Etc.

v3.1

11 of 31

11

Do I have to write the whole sound name each time?

No! We can assign “nicknames” (VARIABLES) to selected sounds to make it easier to keep track of our favourite beats.

v3.1

12 of 31

BUILD YOUR VOCABULARY TO LEARN CODE

12

Term

Definition

A unit of storage that creates a space in the computer’s memory to store data.

VARIABLE

#SOUNDBANK VARIABLES

drums = SAMIAN_PEUP_BEAT_FULL

vocal1 = JWOLF_COTG_VOX_MISC_SHOUT

v3.1

13 of 31

13

CREATE VARIABLES TO STORE YOUR SOUNDS

Follow the instructions on the slides or in your Student Coding Activity Workbook.

  1. Create variables in your #SOUNDBANK for your drum and vocal sounds.
  2. Add three more sounds to your #SOUNDBANK and assign them to variables. For example:

drums = SAMIAN_PEUP_BEAT_FULL

vocal1 = JWOLF_COTG_VOX_MISC_SHOUT

bass = TFLAMES_OC_BASS_CHOR

flute = SAMIAN_PEUP_THEME_FLUTE

strings = SAMIAN_PEUP_THEME_STRINGS_3

v3.1

14 of 31

14

YOUR FINISHED CODE WILL RESEMBLE THE FOLLOWING:

# description:

from earsketch import *

setTempo(120)

# SOUNDBANK

#drums

drums = SAMIAN_PEUP_BEAT_FULL

#vocals

vocal1 = JWOLF_COTG_VOX_MISC_SHOUT

#bass

bass = TFLAMES_OC_BASS_CHOR

#flute

flute = SAMIAN_PEUP_THEME_FLUTE

#strings

strings = SAMIAN_PEUP_THEME_STRINGS_3

v3.1

15 of 31

BUILD YOUR VOCABULARY TO LEARN CODE

15

Term

Definition

The function that adds audio clips to the DAW and uses four arguments/parameters - (sound clip, track, starting measure, and ending measure).

fitMedia()

v3.1

16 of 31

BUILD YOUR VOCABULARY TO LEARN CODE

16

Term

Definition

A piece of code that performs a task.

fitMedia()

setTempo()

makeBeat()

FUNCTION

v3.1

17 of 31

17

CODE YOUR INTRO!

Follow the instructions on the slide or in your Coding Activity Workbook

  1. Type #intro after all the sounds in your #SOUNDBANK
  2. Type the fitMedia() function below the #intro.
  3. Choose a sound from your #SOUNDBANK and type the variable name as your first parameter. Add a comma after each parameter.
  4. Enter “1” as your track number.

5. Enter “1” as your Starting measure.

6. Enter “5” as your Ending measure.

7. Run and play your code to hear the song you are creating

8. Repeat this process for the remaining four sound clips using a different track number for each.

v3.1

18 of 31

18

YOUR FINISHED CODE WILL RESEMBLE THE FOLLOWING:

# description:

from earsketch import *

setTempo(120)

# SOUNDBANK

#drums

drums = SAMIAN_PEUP_BEAT_FULL

#vocals

vocal1 = JWOLF_COTG_VOX_MISC_SHOUT

#bass

bass = TFLAMES_OC_BASS_CHOR

v3.1

#flute

flute = SAMIAN_PEUP_THEME_FLUTE

#strings

strings = SAMIAN_PEUP_THEME_STRINGS_3

#intro

fitMedia(drums,1,1,5)

fitMedia(bass,2,1,5)

fitMedia(flute,3,1,5)

fitMedia(strings,4,1,5)

fitMedia(vocal1,5,1,5)

19 of 31

19

OPTIONAL BONUS CODING CHALLENGE

This is a tricky one. If you are new to coding you may want to come back to it later after you have mastered fitMedia().

The setEffect() function allows you to add effects such as echo, pitch change or volume changes to your tracks. For example:

    • setEffect(2,VOLUME, GAIN, 8)

(increases volume on track 2)

    • setEffect(3, VOLUME, GAIN, -30)

(decreases volume on track 3)

Extension B lists other functions you can try!

v3.1

20 of 31

20

Follow the instructions on the slides or in your Student Coding Activity Workbook.

  1. Continue with your Your Voice is Power [Your Initials] script.
  2. Select the Add Sound button in the Sound browser.

v3.1

21 of 31

21

  1. Select the QUICK RECORD tab.
  2. Specify Countoff Measures to control how long to count before recording begins.
  3. Specify the number of Measures to record.
  4. Select the REC icon to start recording. When the countdown ends and recording begins say “My Voice is Power”.

v3.1

TIP: You can record a maximum of 8 measures.

At 120 bpm one measure is 2 seconds long.

22 of 31

22

  1. Select Play to listen to your recording
  2. Select CLEAR if you want to start over
  3. To save your recording, give it a name by specifying a value for Constant Name .
  4. Select UPLOAD

v3.1

23 of 31

23

  1. Clear any filters you have in the sound library.
  2. Search SOUNDS by ARTISTS.
  3. Your login name will be listed as an artist (e.g. HOCKEYGEEKGIRL)
  4. Select your Name as an artist and you will see your sound clip listed.

v3.1

24 of 31

24

  1. Add your sound clip to the #SOUNDBANK
    1. Assign it to a variable
    2. Replace one of the tracks in your #intro with your sound by changing the variable name in one of the fitMedia() functions
  2. Select Run and Play

v3.1

25 of 31

25

3. CONSOLIDATION / REFLECTION

v3.1

26 of 31

In your Student Writing Activity Workbook, match these terms with their definitions:

  • track
  • variable
  • function
  • fitMedia()

26

v3.1

27 of 31

27

v3.1

In your Student Writing Activity Workbook, answer the following questions:

  1. How did you choose your song’s sound clips?

  • How do you think you could layer your sound clips to represent layers of injustice?

  • How do variables help you create more effective code?

28 of 31

28

Optional Extensions

v3.1

29 of 31

29

  • You can 'favourite' sounds by selecting the 'star' beside the sound.

  • You can also select the Show Only orange star to see only their favourite sounds.

v3.1

30 of 31

30

Bonus Skill

What You Will Learn

Link for Curriculum Resources

Uploading sounds (adding lyrics, community sounds)

Go beyond the sounds in the sound browser. Upload a new sound, find a clip on FreeSound from community sounds, or record a new sound to add your voice to the song by singing or rapping.

setEffect()

Adjust track volume, fade sounds in or out, create echos, distort sounds, change the pitch, or add a reverb .

makeBeat()

Compose music note by note instead of at the measure level. This is great for drum beats. In music production, this approach is referred to as step sequencing.

Loops

Use loops to code repetition in your music more efficiently.

v3.1

31 of 31

31

THANK YOU!

v3.1