π οΈ Section project: a music show
Section 3: Sound and repeatingLesson 3.4 Β· β± 10 min
π― Project goal
Two characters: Robo plays, and the cat dances. Everything starts when you tap π©.
Add the cat with β, then tap each character to code it.
π€ Robo

- When π© is tapped
- Play note π΅ 1
- Play note π΅ 3
- Play note π΅ 5
- Beat the drum π₯
π± Cat

- When π© is tapped
- Repeat π 3 times:
- β³ Hop π¦
π Another example: Robo dances and the dog beats the drum
Two programs with βΎοΈ: each character plays or dances without stopping.
π€ Robo

- When π© is tapped
- Hop π¦
- Start again forever βΎοΈ
πΆ Dog

- When π© is tapped
- Beat the drum π₯
- Start again forever βΎοΈ


βοΈ Practise
The music show.
βοΈ Practise here in the lessonβ Close the labor open the lab in a new page β
π― Challenge yourself
Easy
Robo welcomes the audience, then plays 3 notes.
π Show the solutionπ Hide the solution

- When π© is tapped
- Say π¬ βWelcome to the show! π€β
- Play note π΅ 1
- Play note π΅ 3
- Play note π΅ 5

Medium
Robo plays and then thanks the audience, and the cat hops 3 times, then says βBravo!β.
π Show the solutionπ Hide the solution
π€ Robo

- When π© is tapped
- Play note π΅ 1
- Play note π΅ 3
- Play note π΅ 5
- Say π¬ βThank you! πβ
π± Cat

- When π© is tapped
- Repeat π 3 times:
- β³ Hop π¦
- Say π¬ βBravo!β

Hard
A tune repeated twice with the drum, then βThe end πΆβ, and the cat dances (costume and hop) 4 times.
π Show the solutionπ Hide the solution
π€ Robo

- When π© is tapped
- Repeat π 2 times:
- β³ Play note π΅ 1
- β³ Play note π΅ 3
- β³ Play note π΅ 5
- β³ Beat the drum π₯
- Say π¬ βThe end πΆβ
π± Cat

- When π© is tapped
- Repeat π 4 times:
- β³ Next costume π
- β³ Hop π¦


