Take your horn beeps to the next level with more tones and tunes! Beep the horn on Code Car automatically in song sequences.
Challenges
How many can you complete? Change the code according to the challenges below. Upload your code to see the effect when you're finished. Complete a challenge? Check it off the list!
Use the internet to find a table that converts hertz to musical notes. Can you make some of the following songs?
New Concept: Repetition and Patterns (Again)
The challenges on this lesson are very open-ended, and they can get long. Some students have written hundreds of lines of code to create their favorite song from a movie or video game. Most songs, like most code, is made up of patterns that repeat or at least use the same tools (notes and pauses, for example) to create something unique. So while it may seem intimidating to look at a huge block of code, remember to try to pick out the patterns and deconstruct the program into its pieces.