# How to Make a Virtual Piano & Beat Maker > Play melodies on your keyboard and layer drum loops using the Music extension. How to Make a Virtual Piano & Beat Maker — Play melodies on your keyboard and layer drum loops using the Music extension. ## Core approach Map keys A-S-D-F-G-H-J-K to a C-major scale (notes 60, 62, 64, 65, 67, 69, 71, 72) and light up each key sprite when pressed. - Add instrument switcher buttons (Piano, Synth, Guitar, Marimba). - Add a toggleable backing drum loop. - Record played notes into a list for instant playback! ## Pro tip & next steps Click the note field in Scratch to preview pitches on the visual keyboard. - [All Project Tutorials](/en/projects/): Browse more English guides in this section. - [Scratch Block Dictionary](/en/dictionary/): Look up any Scratch 3.0 block with examples. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/projects/music/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)