Skip to content

Commit 8d0f580

Browse files
Merge pull request #37 from raspberrypilearning/draft
Add empty lines for translation
2 parents adeabee + 862c4b3 commit 8d0f580

5 files changed

Lines changed: 26 additions & 0 deletions

File tree

en/step_1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
**UNPLUGGED**: [Download](resources/unplugged-sound-sequence.pdf){:target="_blank"} the 'Sound sequence' warm up activity.
66

77
--- print-only ---
8+
89
TODO:
910
![ALT TEXT](images/IMAGE.png)
11+
1012
--- /print-only ---
1113

1214
--- no-print ---

en/step_2.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Open the MakeCode editor at [makecode.microbit.org](https://makecode.microbit.or
1313
[[[makecode-tour]]]
1414

1515
--- task ---
16+
1617
### Create your project
1718

1819
Create and name your project:
@@ -30,6 +31,7 @@ Give your new project a name (e.g. 'Our Club') and click **Create**.
3031
--- /task ---
3132

3233
--- task ---
34+
3335
### Make a melody
3436

3537
From the `Music`{:class="microbitmusic"} menu, drag the `play melody ... at tempo 120 (bpm) [until done]`{:class="microbitmusic"} block and place it inside the `forever`{:class="microbitbasic"} block.
@@ -65,6 +67,7 @@ See the melody pattern in the Editor.
6567
--- /task ---
6668

6769
--- task ---
70+
6871
### Listen and tune
6972

7073
**Test**

en/step_3.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Play and stop
22

33
--- task ---
4+
45
### Button A
56

67
From the `Input`{:class='microbitinput'} menu, drag an `on button`{:class='microbitinput'} block to the code editor panel.
@@ -13,6 +14,7 @@ input.onButtonPressed(Button.A, function () {
1314
--- /task ---
1415

1516
--- task ---
17+
1618
### Add a variable
1719

1820
Use a variable to track if the melody is playing.
@@ -24,6 +26,7 @@ Name your new variable `playing`.
2426
--- /task ---
2527

2628
--- task ---
29+
2730
### Playing or not playing
2831

2932
From the `Variables`{:class='microbitvariables'} menu, drag a `set playing`{:class='microbitvariables'} block inside the `on button`{:class='microbitinput'} block.
@@ -63,6 +66,7 @@ input.onButtonPressed(Button.A, function () {
6366
--- /task ---
6467

6568
--- task ---
69+
6670
### Play the melody when playing is true
6771

6872
From the `Logic`{:class='microbitlogic'} menu, drag an `if`{:class='microbitlogic'} block inside your `forever`{:class='microbitbasic'} block.

en/step_4.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ One micro:bit will play the **melody**.
66
The other micro:bit will play the **bass**.
77

88
--- task ---
9+
910
## Setup
1011

1112
Open the `Variables`{:class='microbitvariables'} menu and click **Make a Variable**.
@@ -26,6 +27,7 @@ playing = false
2627
--- /task ---
2728

2829
--- task ---
30+
2931
Add this code, which will:
3032
- Tell the micro:bit that nothing is playing yet.
3133
- Set a radio group so that the micro:bits can communicate with each other. Both micro:bits must be in the same **radio group**.
@@ -42,6 +44,7 @@ basic.showIcon(IconNames.Asleep)
4244
--- /task ---
4345

4446
--- task ---
47+
4548
### Press 'A' for melody
4649

4750
Check that the micro:bit is _not_ set to be a **melody** instrument.
@@ -67,6 +70,7 @@ The micro:bit will show ‘M’.
6770

6871

6972
--- task ---
73+
7074
### Press 'B' for bass
7175

7276
Add code so that you can press button B to tell another micro:bit to be the bass.
@@ -81,6 +85,7 @@ input.onButtonPressed(Button.B, function () {
8185

8286

8387
--- task ---
88+
8489
### Receive the bass message
8590

8691
If a micro:bit is not doing anything and receives the bass message, it starts the bass part.
@@ -102,6 +107,7 @@ radio.onReceivedString(function (receivedString) {
102107
--- /task ---
103108

104109
--- task ---
110+
105111
### Play instruments together
106112

107113
1. The melody micro:bit plays its tune, then sends a signal to tell the bass micro:bit when to play.
@@ -120,6 +126,7 @@ basic.forever(function () {
120126
--- /task ---
121127

122128
--- task ---
129+
123130
### The bass joins in
124131

125132
When the bass micro:bit receives 'newBar', it plays in time with the melody.
@@ -153,6 +160,7 @@ radio.onReceivedString(function (receivedString) {
153160
--- /task ---
154161

155162
--- task ---
163+
156164
### Pause and play again
157165

158166
Check whether the micro:bits are set as instruments.
@@ -175,6 +183,7 @@ input.onGesture(Gesture.Shake, function () {
175183
**Test**:
176184
- Shake the micro:bit to pause the music and show a sleepy face
177185
- Shake again to start
186+
178187
--- /task ---
179188

180189
Share your tune with us!

en/step_5.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The micro:bit V2 has drum sounds you can use. These are not available for the mi
55
Create a drum pattern and use buttons to play bass notes.
66

77
--- task ---
8+
89
### Set the tempo!
910

1011
There is no pattern editor for drums, but you can still create a drum beat!
@@ -20,6 +21,7 @@ music.setTempo(120)
2021

2122

2223
--- task ---
24+
2325
### Trigger the drums!
2426

2527
From the `Input`{:class='microbitinput'} menu, drag an `on logo`{:class='microbitinput'} block to the code editor panel.
@@ -33,6 +35,7 @@ input.onLogoEvent(TouchButtonEvent.Pressed, function () {
3335

3436

3537
--- task ---
38+
3639
### Drum loop
3740

3841
From the `Loops`{:class='microbitloops'} menu, drag a `while`{:class='microbitloops'} block inside the `on logo`{:class='microbitinput'} block.
@@ -49,6 +52,7 @@ input.onLogoEvent(TouchButtonEvent.Pressed, function () {
4952
--- /task ---
5053

5154
--- task ---
55+
5256
### First, the kick drum
5357

5458
From the micro:bit V2 section of the `Music`{:class='microbitmusic'} menu, drag a `play (🎵 ---)`{:class='microbitmusic'} block and place it in the `while`{:class='microbitloops'} block.
@@ -69,6 +73,7 @@ input.onLogoEvent(TouchButtonEvent.Pressed, function () {
6973

7074

7175
--- task ---
76+
7277
### Add a pause
7378

7479
From the `Basic`{:class='microbitbasic'} menu, drag a `pause`{:class='microbitbasic'} block under your kick drum sound.
@@ -101,6 +106,7 @@ input.onLogoEvent(TouchButtonEvent.Pressed, function () {
101106

102107

103108
--- task ---
109+
104110
### A four-four beat
105111

106112
Copy your `play (🎵 ---)`{:class='microbitmusic'} and `pause`{:class='microbitbasic'} blocks three times, so you have four beats and four pauses.
@@ -183,6 +189,7 @@ input.onLogoEvent(TouchButtonEvent.Pressed, function () {
183189
--- /task ---
184190

185191
--- task ---
192+
186193
### Add some bass tones
187194

188195
From the `Input`{:class='microbitinput'} menu, drag two `on button`{:class='microbitinput'} blocks to the code editor panel.
@@ -223,6 +230,7 @@ input.onButtonPressed(Button.B, function () {
223230

224231

225232
--- task ---
233+
226234
### Light and movement
227235

228236
**Try**: Replace the tone (e.g. 'Low C') with the `light level`{:class='microbitinput'} so that the tone changes as you move your hand over your micro:bit.

0 commit comments

Comments
 (0)