Lesson Overview

This unit teaches students about creating procedures and playing music in an app. The objective is to create an app with piano keys that the user can press to play musical notes. The "MyPiano" unit emphasizes an iterative and incremental approach, where students start with one note and then gradually add more notes to their apps. Procedures, which are a crucial part of abstraction and modularization, will also be introduced. Students will write a procedure for playing a note and then use the same procedure for playing the other notes. This will enable them to reuse the code for each subsequent key on the piano app they create.

Learning Objectives

  1. Develop a piano app using the App Inventor Blocks Editor.
  2. Apply computational thinking practices, such as being incremental and iterative, to develop and test an app in stages.
  3. Reuse code within an app.
  4. Demonstrate abstraction by creating and implementing procedures in App Inventor.
  5. Test and debug an app using the MIT AI2 Companion.
  6. Increase their positive perception of programming by creating a useful and enjoyable app.

Lesson Plan

Activity

🔽 Introduction to MyPiano Project

Untitled

🔽 Coding Activity 1: Designer Section

HorizontalArrangements.png

  1. HorizontalArrangement with 2 VerticalArrangements inside.