RELEASED BY "What's News" [Link]/wsnws TELEGRAM: t.
me/whatsnws
TYPES OF PROJECT 23
190
190 MUSIC AND SOUND
MUSIC AND SOUND
D R U M TA S T I C
D R U M TA S T I C
191
191
Drumtastic Dancing
Dancing cat
cat
To make the project more fun, the cat will dance and A, B, C, D ...
A, B, C, D ...
Virtual Snow (p.144) Firework
This
This project
Display
project turns
turns your
(p.154)
your computer
computer keyboard
keyboard into
into aa drum
drum
Fractal Trees (p.162) Snowflake Simulator (p.172)
To make the project more fun, the cat will dance and
shout out each letter in a speech bubble as the drums
shout out each letter in a speech bubble as the drums
This project turns your computer keyboard into a drum play. Follow the steps below to create a custom block
play. Follow the steps below to create a custom block
machine.
machine. Type
Type inin anything
anything you
you want,
want, and
and Scratch
Scratch turns
turns that plays the drums and animates the cat.
the that plays the drums and animates the cat.
the letters
letters into
into repeating
repeating drum
drum sounds
sounds using
using up
up to
to
18
18 different instruments, from cymbals and bongos
different instruments, from cymbals and bongos
to
to pounding
pounding bass
bass drums.
11 Start a new project and keep the
Start a new project and keep the
33 Now, create a custom block for the cat sprite. Choose
Now, create a custom block for the cat sprite. Choose
△ Simulations drums. cat sprite. Set the background to
cat sprite. Set the background to
a solid color by clicking the paint
a solid color by clicking the paint
symbol in the backdrops menu,
“My Blocks” in the blocks palette and make a new block
“My Blocks” in the blocks palette and make a new block
called “play a drum”. This will trigger a code that plays
called “play a drum”. This will trigger a code that plays
a drum and makes the cat say the drum’s letter at the
symbol in the backdrops menu, a drum and makes the cat say the drum’s letter at the
Give a computer the correct information and it can mimic,
picking a cool color, and using the same time. To keep things simple, the first version of
picking a cool color, and using the same time. To keep things simple, the first version of
▽ Scratch drumkit fill tool to create a colored the code will play the same drum sound every time.
How
How it it works
works
▽ Scratch drumkit
The code turns every letter
fill tool to create a colored
backdrop. Make sure you’ve clicked
backdrop. Make sure you’ve clicked
the code will play the same drum sound every time.
or simulate, the way things workWhenin youthe
run thereal
project,world.
the Scratch cat
When you run the project, the Scratch cat This
asks you to
asks you to
The code turns every letter
into a drum sound. There are
into a drum sound. There are
26 letters in the alphabet, but
the “Convert to Bitmap” button.
the “Convert to Bitmap” button. My Blocks
My Blocks
type something in the box. When you press return, the 26 letters in the alphabet, but Make a Block
chapter shows you how to simulatecode turnsfalling snow,
a different sparkling
type something in the box. When you press return, the Scratch has only 18 drum Make a Block
each letter into a different sound and plays Scratch has only 18 drum Click here
code turns each letter into sound and plays sounds, so some sounds Click
to here
open the
sounds, so some sounds play a drum
the phrase back over and over again. As the sounds are used for two letters. to open
paint the
editor. play a drum
the phrase back over and over again. As the sounds are used for two letters.
fireworks, the growth of trees, and the shapes of snowflakes.
play, the colored drums on the stage flash in time,
play, the colored drums on the stage
while the Scratch cat walks to the beat.
flash in time,
paint editor.
while the Scratch cat walks to the beat.
AA Paint
Paint
44 The new block will appear in the blocks
The new block will appear in the blocks
palette. Right-click (or control/shift-click)
palette. Right-click (or control/shift-click) Type the name
Type
on this block, and choose “Edit” to add of thethe name
input
on this block, and choose “Edit” to add of the“letter”.
input
Snare drum an input window for the drum’s letter. here:
Snare drum an input window for the drum’s letter. here: “letter”.
Count
Count
Count
Words
Words
Words
30
30
30
Scratch
Scratch
Scratch
◁ Music and sound Make a Block
Make a Block
BBWhile early computers
Select struggled to make simple
22 Select the cat sprite, click on
the cat sprite, click on
Variables, and add these variables
Variables, and add these variables play a drum letter
beeps, modern computers can reproduce every
to your project: “Count” and play
play aa drum
drum letter
letter
to your project: “Count” and
Bass drum “Words”. Leave them checked so
Bass drum “Words”. Leave them checked so
that they show on the stage.
that they show on the stage.
instrument in an orchestra. Try out these two treats
CC Click here to make
Clickeach
herevariable.
to make
for your ears. The first one matches sound effects
text
each variable. text
text
Each drum Add an input Add an input Add a label
Side sticks Add
Add an
number input
anor text
input Add
Add an
an input
boolean
input Add
Add aa label
label
Each up
lights drum
as Side sticks Make a Variable
with silly animations, and the second one puts a
number
number or
or text
text boolean
boolean
lights up as
it’s played. Make
Make aa Variable
Variable
it’s played. Run without screen refresh
Count Run without screen refresh
Count
Count
Ddigital drum kit at your fingertips.
Cancel OK
Make Some Noise! My variable Cancel OK
Make
Make Some
Some Noise!
Noise!
D My
My variable
variable
Words
The words The drums light up Words
Words Click “OK” to
Sprites and Sounds (p.182) Drumtastic (p.190) The typed
you words
you typed
The
as drums
the light
sounds up
play.
as the sounds play.
Cymbals
Cymbals
Choose this option.
Choose this option.
Click
complete the“OK” to
block.
complete the block.
◁ Mindbenders
Making images move in clever ways can fool
the eye into seeing amazing patterns and
optical illusions. Try these mindbending,
spinning-pattern projects.
The Magic Spot (p.200) Spiral-o-tron (p.208)
EXPERT TIPS
Perfect projects
Every project in this book is do, go back a few steps and check
broken down into easy steps— the instructions again carefully.
read each step carefully and you’ll If you still have problems, ask
sail through them all. The projects an adult to check with you. Once
tend to get more complicated you’ve got a project working,
later in the book. If you find a don’t be afraid to change the
project isn’t doing what it should code and try out your own ideas.