You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

73
88
74
89
The *Status widget* is a tool for inspecting the status of Music
75
90
Blocks as it is running. By default, the key, BPM, and volume are
76
91
displayed. Also, each note is displayed as it is played. There is one
77
-
row per voice in the status table.
92
+
row per voice in the status table.[RUN LIVE](https://musicblocks.sugarlabs.org/index.html?id=1732541757152077&run=True)
78
93
79
94
Additional *Print* blocks can be added to the *Status* widget to
80
95
display additional music factors, e.g., duplicate, transposition,
81
96
skip, [staccato](#MORE-TRANSFORMATIONS),
82
97
[slur](#MORE-TRANSFORMATIONS), and [graphics](#GRAPHICS) factors,
83
98
e.g., x, y, heading, color, shade, grey, and pensize.
84
99
85
-

100
+

86
101
87
102
You can do additional programming within the status block. In the
88
103
example above, `whole notes played` is multiplied by `4` (e.g. quarter notes)
89
-
before being displayed.
104
+
before being displayed. [RUN LIVE](https://musicblocks.sugarlabs.org/index.html?id=1732553086132345&run=True)
105
+
106
+
## <a>4. Playback Modes</a>
90
107
91
-
## 4. Playback modes
108
+
[Back to Table of Contents](#table-of-contents)
92
109
93
110
Clicking on the Play button will play your program at full speed.
94
111
(It will also hide the blocks while the program runs, which improves
95
112
performance.) But there are two other playback modes.
96
113
97
114
On the Secondary Menu, there are two other Play buttons.
98
115
99
-
During Playback Slow mode the program will pause between the execution
116
+
During *Playback Slow* mode the program will pause between the execution
100
117
of each block and the block being executed will be highlighted. This is
101
118
useful for following program flow, ensuring that the sequence of blocks
102
119
being executed is what you expect. In addition, the value stored in any
103
120
box or parameter is displayed on the block as the program runs, so you
104
121
can "inspect" program elements as the program runs.
105
122
106
-
Run Step by Step advances one block per button press.
123
+
*Run Step by Step* advances one block per button press.
107
124
108
-
## 5. Show and Hide blocks
125
+
## <a>5. Show and Hide blocks</a>
126
+
127
+
[Back to Table of Contents](#table-of-contents)
109
128
110
129
The *Show* and *Hide* blocks (found on the *Extras* palette) are
111
130
useful for setting
@@ -117,7 +136,7 @@ gets to the *Show* block. Then the blocks are displayed and
117
136
run in *Playback Slow* mode. When the *Hide* block is encountered, the
118
137
blocks are hidden and the program resumes running at full speed.
119
138
120
-
## 6. Browser console
139
+
## <a>6. Browser Console</a>
121
140
122
141
As Music Blocks runs, some debugging information is written to the
123
142
browser console, such as the notes being played and comments (See the
@@ -127,3 +146,5 @@ browser console, such as the notes being played and comments (See the
The Set To and Change By commands are specified through pull-down menus.
109
-
Store in Box
109
+
110
+
**Store in Box**
110
111
111
112
In Music Blocks, we use an analogy of a shoe box. You put something
112
113
into a box and then reference the thing by the name you have given to
@@ -151,7 +152,7 @@ to “12”) to store the possible outcome of rolling two dice. I store in
151
152
the box named “box” the sum of two random numbers between 1 and 6, so
152
153
the box named “box” has a number between 2 and 12. Then I increment
153
154
the box named for the number stored in “box” by one. Later in the
154
-
program I make a bar chart showing the value stored in each box.
155
+
program, I make a bar chart showing the value stored in each box.
155
156
156
157

157
158
@@ -223,7 +224,7 @@ Stitch, since the embroidery machines only have one needle (“single
223
224
threaded”). But in music, we often have more than one voice or
224
225
instrument. You get a separate “thread” for each Start block.
225
226
226
-
For example, we can implement a simple mirror paint by using four Start blocks.
227
+
For example, we can implement a simple mirror paint by using four Start blocks.[RUN LIVE](https://musicblocks.sugarlabs.org/index.html?id=1732171217345259&run=True)
0 commit comments