Lesson: Music and Animation
Time: 60+ mins
IntroductionHope you’re in a musical mood! In this lesson, students will create fun musical projects and games. Note: Modules in this lesson include a listening component, so headphones (1 per student) are recommended.
: Run code attached to this block when you press a specified key. : Keep repeating the blocks inside this loop forever. : Pause the program for a specific number of seconds. : Play the specified sound file and wait until it is finished playing. : Change the costume of the Actor. : Change the Actor's costume to the specified one.
- Tempo: The speed or pace of music, how fast the music plays
- Use code blocks to add background music to the main Actor in a scene
- Apply coding concepts to create a project with music
- Computers, laptops, or mobile devices (1 per student) with student account access to Tynker.com
- Headphones (1 per student)
Warm-Up (15 minutes)
- Tell your students that today’s lesson is all about the music!
- As a class, brainstorm different ways music can be applied to games. Ideas may include: to convey emotion; a challenging level might include fast-paced music; sound effects; music is part of the gameplay like in "Guitar Hero"; a silly cut scene might include silly music)
- If needed, review with your students how to add sound to a "play sound" block. They will need to know how to do this for today’s lesson: Select the "play sound" code block’s parameter, select "Add Sound," then select music or sounds from the Tynker Media Library.
Activities (45 minutes)Facilitate as students complete all Music and Animation modules on their own:
1. Introduction (Video)
- This module introduces three concepts:
- Play Drum Until Done- The "play drum" block plays a specific drum or percussion sound for the specified number of beats.
- Play Note Until Done- The "play note until done" block plays the specific note you tell it for the specified number of beats.
- Set Tempo- The "set tempo" block sets how fast the music plays.
- This module is an example of a musical project, where each button makes the robot do a different dance!
- Tell students to click (for web) or tap (for mobile) the buttons to make the robot dance.
- This module showcases how to make a song play over and over using a "forever" loop combined with a "play sound until done" block.
- Note that the "play sound until done" block is used, rather than the more common "play sound" block. The "until done" part means that the music has a built-in "wait" block!
- Encourage your students to add whatever sound or music they like, and make the robot dance to it using the buttons!
- To solve this puzzle module, students will need to program the blue button to switch to "off" when the blue orb touches it.
- Give a hint: Tell students to select the "blue button off" parameter inside the "switch to costume" block.
- A score of "4" wins the game!
- In this module, students will view an example of an interactive button that plays music or a sound when pressed!
- Now it’s time for your students to create their own musical button! In this DIY project, students will need to program a button to play a sound. Students will also need to animate the button so it appears to be depressed, similar to a real physical button.
- Your students can use any sound from the Tynker Media Library.
- Did students finish early? Direct their attention to the bonus section in “Step 4/4” of the tutorial, which encourages students to add more buttons!
- Students will be asked 5 multiple-choice questions to review concepts from this lesson.
Extended Activities (10 minutes)More Practice
- Encourage students to expand on the skills they learned in this lesson by creating another musical project. This time, have them program an Actor of their choice to play background music. Challenge students to have the Actor’s personality match the background music. Ask students to think about the emotion they want the user to feel when they watch the scene.
- CCSS-Math: MP.1
- CCSS-ELA: RF.1.1, RF.2.4, RF.2.4.A, RF.3.4.A, RF.4.4.A, RI.2.6
- CSTA: 1B-AP-10, 1B-AP-11, 1B-AP-15
- CS CA: 3-5.AP.12, 3-5.AP.13, 3-5.AP.17
- ISTE: 1.c, 1.d, 4.d, 5.c, 5.d, 6.b
These student-facing slide presentations help educators seamlessly run Tynker lessons in a virtual or physical classroom setting. Each lesson has its own set of slides that introduce the big ideas, suggest unplugged activities, and include a section for each activity module. While running lesson slides, you can switch back and forth between the activity, the slides, answer keys and other lesson materials.
A sample slide presentation is available for your review. Please log in to view all the class presentations available with your plan..
Loops and Animation
Creating a Scene
Jumping over Obstacles
Music and Animation
Instruments and Tempo
Message Driven Programming
Pop the Balloon
Animation with Movement