Welcome back to Scratch Music and Sound, day 6. Today, you’ll build a music video whilelearning about an important computer science concept called “procedures.” In computerscience, a “procedure” is a set of many instructions packaged together to create anew command. In Scratch, the new command, or procedure, is a new, custom block, whichyou will create. For example, you could create a block named “CS First” that instructsthe computer to make the Scratch Cat run onto the screen, say, "CS is awesome!" and runback off the screen. Then, when you want the cat to appear in your program, you just dragout the CS First block, instead of creating a whole new stack of blocks to make the catappear and talk. The CS First block is an example of a procedure. Procedures are a shortway to give the computer a set of instructions, and they are one way computer scientists likeyou save time and steps when coding. Today, you will use procedures to create custom blocksto make your music video. Scratch is a popular tool for making musicvideos. You can upload a song, then animate it using the code blocks you have learnedabout in this club. This is a pretty action-packed music video, but the code isn't complicated<show scripts tab>, and the animations are simple costume changes.
Take a look at some other music videos built with code blocks.
Those are some awesome videos created by Scratch computer scientists like you. Many of themwere built with blocks you already know how to use. Of course, creating music videos andanimating them can take a lot of time. But, the end result is fantastic, and those videoscan be seen by thousands of people! Computer science involves a lot of steps and thinkingthrough problems, but the final result can have a big impact on a lot of people and giveyou a great feeling of accomplishment--that makes the time and effort worth it for manycomputer scientists. Take a look at this sample video that showssome of the techniques you can learn today. Each sprite you see here behaves in a unique,fun way. You'll get to choose which of these behaviors you want to create in the next screencasts.
First, start a new project, name it "music video," and delete the Scratch cat.
Next, click on the music library link on the same CS First page as this screencast, andlisten to a few songs.
In the new project you just made, click on the stage and the sound tab, then upload thesong you chose. You may need to look in your "downloads" folder to find where the songis located on your computer. Now, it's your turn. Create a new projectnamed "music video" and delete the Scratch cat. Choose a song from the CS First musiclibrary and upload it to the stage area of your project. After completing those steps,return to this CS First tab and click the green arrow to move on to the next screencast.