Lesson Plan

Lesson: Music and Animation
Time: 60+ mins

Introduction

Hope 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.

Code Blocks

  • : 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.

Vocabulary

  • Tempo: The speed or pace of music, how fast the music plays

Objectives

Students will...
  • Use code blocks to add background music to the main Actor in a scene
  • Apply coding concepts to create a project with music

Materials

  • 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.
2. Add Background Music Example (Example)
  • 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.
3. Add Background Music (DIY)
  • 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!
4. Animate the Button (Puzzle)
  • 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!
5. Add Music Example (Example)
  • In this module, students will view an example of an interactive button that plays music or a sound when pressed!
6. Build a Piano (DIY)
  • 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!
7. Quiz (Multiple-Choice)
  • 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.

U.S. Standards

  • 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
This course is not part of your plan. Please upgrade to view all answer keys

Class Presentations

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..
Lesson 1
Introduction
27 Slides
Lesson 2
Loops and Animation
19 Slides
Lesson 3
Creating a Scene
21 Slides
Lesson 4
Jumping over Obstacles
20 Slides
Lesson 5
Storytelling
23 Slides
Lesson 6
User Interaction
19 Slides
Lesson 7
Guessing Game
22 Slides
Lesson 8
Rotation
20 Slides
Lesson 9
Alien Invaders
17 Slides
Lesson 10
Music and Animation
18 Slides
Lesson 11
Instruments and Tempo
19 Slides
Lesson 12
Broadcasting Messages
18 Slides
Lesson 13
Time Limits
17 Slides
Lesson 14
Message Driven Programming
18 Slides
Lesson 15
Pop the Balloon
18 Slides
Lesson 16
Animation with Movement
18 Slides
Lesson 17
Obstacle Course
19 Slides