Block Code Music Unblocked

Play Block Code Music online for free in your browser. No download, no sign-up.

Block Code Music gameplay screenshot
  • Partly works on mobile
Report a problem

Turn your phone sideways for a bigger view of this game.

Block Code Music is a coding game where the result is a song. Instead of moving a character, your blocks play notes. A staff on the left shows the target melody as gray notes, and your program fills it in with black ones as it plays. Block Code Music uses a single familiar round to teach one big idea: functions, which let you name a phrase once and play it as often as you need.

How to Play Block Code Music

Every program lives inside a “when Run clicked” block. Drag “play note” blocks into it, set each pitch and length, and press Run Program. The game plays your notes and checks them against the target. Match it and you see the JavaScript your blocks became, plus an offer to go to the next level.

The first level asks for four notes. Level 2 tells you to play them twice without adding any note blocks, so you must wrap them in a function and call it two times. More functions follow for the later phrases, until the whole tune is complete.

After that, new blocks arrive one at a time. A set-instrument block switches to violin and other sounds, and a rest block adds silence. The final target levels use several start blocks at once, so you can delay each voice and stack them into a round. Level 10 is free composing.

Block Code Music Controls

Controls for Block Code Music
ActionKeyboardMouseTouch
Add note, rest or function blocks—Click the Music category and drag a block into the workspaceTap the category and drag a block
Choose a pitchType a note name such as D4 and press EnterClick the note name and pick a line on the small staffTap the note name and pick a line
Choose a note length—Click the note symbol on the blockTap the note symbol
Play or stop your tune—Click Run Program, then ResetTap Run Program, then Reset
Change playback speed—Drag the tempo sliderSlide the tempo control

Tips and Strategies

  • Name functions after phrases. Calling them “part one” and “part two” makes a long tune easy to read.
  • Listen for the round. In the last target levels each voice starts later than the one before, and rest blocks set that gap.
  • Use the staff as a check. Gray notes show what is still missing, so a wrong pitch is easy to spot.
  • Mind the long note. One phrase ends on a longer note, so change its length instead of adding a second block.
  • Give each voice an instrument. The game suggests different instruments in each start block, and the parts become easier to hear.

Features

  • Ten levels built around one tune, from four notes to a layered round.
  • Eight sampled instruments, including piano, violin, flute and choir.
  • Live staff display that draws each note as it plays.
  • Tempo slider to slow the music down while you debug.

Tested and updated:

Block Code Music Unblocked: FAQ

Which tune do the levels use?

Every target level is built around "Frère Jacques". You start with its first four notes, C4, D4, E4 and C4, and finish by playing it as a four-part round.

Why does the game say my solution could be better?

From the function levels on, a program that plays the right notes but repeats note blocks gets a reminder to use functions. Put the repeated phrase in a function and call it twice.

Which instruments can I choose?

The set-instrument block offers piano, trumpet, banjo, violin, guitar, flute, drum and choir, all played from recorded samples.

Will the music start by itself?

No. Nothing plays until you press Run Program, and Reset stops the tune at once.

More Free Games to Play Online