انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents
Robo Block: home
0. Lab tour1
1. Getting started5
2. Motion5
3. Looks and sound5
4. Events4
5. Loops5
6. Conditions and sensing4
7. Variables and randomness4
8. Project: the “Catch Robo” game3
9. Messages: characters talk to each other4
10. Clones: one character, many copies4
11. My Blocks: make a new block3
12. Operators and time4
13. The pro project: a jumping game4

Sounds and notes

Section 3: Looks and soundLesson 3.3 · ⏱ 6 min

Your program can play ready-made sounds, or play musical notes by their numbers: 60 is “C” (do), 62 is “D” (re) and 64 is “E” (mi).

Blocks: when 🚩 clicked, play note (60) for (0.5) beats, play note (62) for (0.5) beats, play note (64) for (0.5) beats, play sound (Pop) until done
🖥️ What happens on the stage?
You hear three rising notes, C D E, then a Pop sound.

📌 Another example: a first tune, “Happy Birthday”

Every note is a number: 60 C, 62 D, 64 E, 65 F. The famous tune starts: C C D C F E.

Blocks: when 🚩 clicked, say (Happy birthday 🎂), play note (60) for (0.5) beats, play note (60) for (0.5) beats, play note (62) for (0.5) beats, play note (60) for (0.5) beats, play note (65) for (0.5) beats, play note (64) for (0.5) beats
Robo sings
Robo sings
Robo sings
Robo sings
✍️ Practise
Play a tune you made up, with 6 notes, and give it a name that Robo says at the start.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

Play the rising scale C D E F G (60 62 64 65 67), then Robo says “A music scale 🎵”.

👀 Show the solution
Blocks: when 🚩 clicked, play note (60) for (0.5) beats, play note (62) for (0.5) beats, play note (64) for (0.5) beats, play note (65) for (0.5) beats, play note (67) for (0.5) beats, say (A music scale 🎵) for (2) seconds
The result on the stage
The result on the stage
Medium

Play the scale going down from G to C, then a Pop sound, then Robo says “The tune is over”.

👀 Show the solution
Blocks: when 🚩 clicked, play note (67) for (0.5) beats, play note (65) for (0.5) beats, play note (64) for (0.5) beats, play note (62) for (0.5) beats, play note (60) for (0.5) beats, play sound (Pop) until done, say (The tune is over) for (2) seconds
The result on the stage
The result on the stage
Hard

Make Robo write the name of each note as he plays it: “C”, then “D”, then “E”.

👀 Show the solution
Blocks: when 🚩 clicked, say (C), play note (60) for (0.5) beats, say (D), play note (62) for (0.5) beats, say (E), play note (64) for (0.5) beats
The last note: E
The last note: E
Finished the lesson? Mark it so your progress counts.