Lesson 2
Creating My Blocks
In this lesson, students will explore the concept of abstraction. Using a My Block, they will learn to create a programming function to store a sequence of commands in a single block. By grouping repeated code into their own functions, students will see how abstraction and functions can make programs more efficient and easier to read. Students will apply this skill to create multiple functions to build the melody to the song, Twinkle, Twinkle, Little Star.
school
Grade
7
local_library
Subject
Music
schedule
Length of lesson
50 minutes
Learning objective
Students will develop a custom function.
Standards
CSTA Standards
- 2-AP-14: Create procedures with parameters to organize code and make it easier to reuse.
National Association for Music Education (NAfME) Music Standards, 2014
- MU:Cr2.1.C.IIa: Assemble and organize multiple sounds or musical ideas to create initial expressive statements of selected sonic events, memories, images, concepts, texts, or storylines.