In this add on you'll create a drum beat
and an instrument accompaniment
to make your game more exciting.
First, make a drum beat.
Here, you'll find the play drum block.
It plays a drum sound.
You can change two values in this block.
The first is the type of drum.
Click the drop down menu and try a few.
(drum sounds)
When you create your song you'll want to test many
different sounds until you find the one you want.
The second value changes the drum beat.
To explore how the beat works
put the play drum block into a forever loop.
Click it and tinker with the beat value
until you get a sound you like.
(hand clap sounds)
Most popular music uses quarter, half, and whole notes.
So a good rule of thumb is to use .25, .5,
and 1 as beat values.
This will give your song a smooth rhythm.
This example will fast forward through making a drum beat
so you can see the basics.
But feel free to explore and create your own.
(upbeat drumming)
Next, add another instrument.
Use the play note block to play musical notes.
This example uses four blocks because
the drum beat also has four blocks.
Change the notes these blocks play.
Play around with a few and find a sound you like.
To loop these notes and play while the drums play
add a forever loop and a when flag clicked event.
(upbeat piano music)
Finally, change the instrument being played
using the set instrument block.
Computer science and music have a lot in common.
It's important to explore and tinker
until you create something that you enjoy.
(upbeat piano music)
Now it's your turn.
Program a drum beat and another instrument using
play drum, play note, forever,
and when flagged clicked blocks.