1 of 6

EarSketch

String Operations

2 of 6

What is Young Guru doing with the original music sample from Al Green?

3 of 6

How can I efficiently make more complex rhythms with the beat String?

  • Go to curriculum lesson 13.2 (“String Concatenation”) of the Archived Curriculum
  • Paste and run the code (Beat String Concatenation), then
  • Alter finalKick on line 29 by changing the order of the beat string concatenations

4 of 6

How do I slice a string so that it can be used to make a new beat?

  • Go to curriculum lesson 13.3 of the Archived Curriculum(“Substrings”)
  • Read about Indices then paste and run the code
  • Change the start Index and end Index values in line 20 to print “out” instead of “rabbit”

(Hint: remember that indices start at 0 and that the start character is included in the slice and the end character is not included in the slice for [start index, end index])

5 of 6

How can I use the sliced String in the makeBeat function to make custom beats?

  • Go to Lesson 13.3 in the curriculum (Substrings)
  • Watch the video to see how a sliced beat string is used to make a new beat using String Operations

6 of 6

Mini Task�

  • Modify your looped beat using either string concatenation or a substring
  • See if your partner can tell which you used based on the sound of the music without seeing your code