BRICKLAYER MUSIC MAN
CODE A WALL Β· HEAR THE SONG
β Back to HyperGeekULevel 1 of 7
One Row, Four Beats
π― Mo lays one huge brick. Change brick_w so the row holds four bricks: four beats.
Code idea
A program is a list of steps the computer follows in order. Change a variable, and you change what it builds.
Music idea
A steady beat. Four equal notes fill one bar of music: count 1, 2, 3, 4.
Change the values, then run it
Mo's program
π Repeat for each row:1 row π
β If the row number is odd, start half a brick early
β‘οΈ Start every row at the left edge
π Repeat across the row until it's full:
π§± Lay a brick8 widewhole note π΅
βοΈ Leave a gap0 πno rest
Variables right now
Run the code to watch them change.