Quick Start

Interested in getting started right away? This quick start guide will walk through how to create simple melodies in Music Blocks. A melody is comprised of a series of notes. Notes are pitches with specified rhythmic values, and these notes are strung together in patterns to create melody. Melodies can be familiar or unpredictable, simple or complex—the choice is yours.

For this guide, we will start with the simple melody “Hot Cross Buns”.

The guide will walk you through the functions of:
  • How to create a voice.
  • How to create notes and modify their pitches and rhythms.
  • How to use the action block and repeat block to create melodic structure.
This is what it will sound like when complete!
  This is what the standard notation sheet music looks like when complete.

1. Voice in Music Blocks, our Mouse Performers



Here is how the program runs:

  • Mouse glyph (icon) is the performer.
  • Mouse glyph performs whatever is in its Start Block. It is like a performing musician who is reading their part.
  • There can be one or more start blocks in the workspace, each having it's own performer(mouse icons in different colours). When the play button is clicked(in the main toolbar), all performers start playing music, which is the content in it's start block


2. Hello world in Music Blocks: Three Note Blocks


“Hello World” is the most basic code that a programmer learns to write. Following is a sample code written using a programming language:
print "Hello world!"

Output of this program will be printing the text: Hello world! .

In this case, the “performer” is the computer. The user has told the computer to “perform” the task of printing the letters “Hello World” on the screen. The “cue” for the performance is the moment when the user presses the Return/Enter key, to tell the computer to perform the given script.

Music Blocks works in such the same manner, but with notes and rhythms. Let's start by making one of the most basic melodies we can, comprised of only three notes—the first three notes of “Hot Cross Buns”!

ti

la

sol


Following shows how to create the other two notes in the second part of the song which should be repeated for four times

sol

la


3. Melodic Structure: Action and Repeat Blocks


Following demonstrates how we can use action and repeat blocks to create structure for our melodic material created in the previous section.


Let's put the first three notes together and create the first "chunk" of "Hot cross buns".


In the second part, sol and la notes are repeated using a "duplicate" block.


Finished Code! Below is an overview of the entire process.


Congratulations!!!

You have made your first melody with Music Blocks!


Now that you have made a simple melody with Music Blocks, you might try the following creative exercises:
  • Changing the order of the action blocks
  • Changing the placement of the repeat blocks and how many times they repeat
  • Changing the pitches
  • Changing the note values
Each time you change something press RUN and listen to the results. What does it sound like? Do you like it? How would you describe the resulting sound? You will probably find versions that you like and versions that sound just plain silly—just try it out the possibilities!

4. Important Details: Definitions of the Blocks


Note value block: Note value block is the fundamental block used to create music. It specifies the duration (note value or rhythmic value) of the whatever is inserted inside its clamp (typically one or more Pitch blocks).
Pitch block: Pitch blocks are used inside the Note value blocks to specify a pitch name and pitch octave of a note. The name and octave in combination determine the frequency (and therefore pitch) of the note that is played. (When multiple Pitch blocks are used inside of a Note value block, a chord is played.)
Start block: Every Music Blocks project requires at least one Start block. Any blocks placed inside the clamp of a Start block are played sequentially from top to bottom when either the Start block or the Run button are clicked. If there are multiple Start blocks, all of them will run concurrently when the Run button is clicked. (This is a simple way to play multiple voices at once.).
Action block: The clamp of an Action block contains a sequence of blocks that will only be executed from top to bottom when the Action block is referenced by its corresponding named block (See chunk below).

Action blocks are useful for encapsulating phases (“chunks” of notes) of music when composing more complex themes.
Chunk block: Whenever a new Action block is created, a corresponding named block called “action” is automatically created. This block can be used as a reference to the Action block. Whenever an Action block is created, its named reference block is automatically added to the “Action” palette, where it can be selected and used as often as needed.

The name of the action can be changed by changing the label of the Action block, for example, to “chunk”. By this mechanism, you can chose a unique name for each phrase of music (chunk of notes).
Repeat block: When a phase of music needs to be played repeatedly, a Repeat block can be used. No of times to be repeated can be specified by a number.
i.e. If there are three rhythm blocks inside the repeat block, and if it specified for 2 repeats, the blocks will be played repeatedly for 2 times (one time all blocks sequentially and again).
Duplicate block: When a certain part of music needs to be duplicated, this block can be used. No of times to be duplicated should be specified by a number.
i.e. If there are three rhythm blocks inside the duplicate block, and if it specified for 2 duplicates, each block will be repeated for 2 times, and the blocks will be played sequentially.

5. Music Block Workspace: Navigating the Toolbars and Palettes

Toolbars in Music Blocks:

Music blocks has three toolbars, Following shows where they are located:



  • Main toolbar is for run/debug purposes which is on top of the workspace.
  • The toolbar on the right of the workspace is the Auxiliary toolbar; is for managing projects and to control the workspace.
  • Palette toolbar is the most important which contains all building blocks for creating music which is on the left side of the workspace.

Essentials to create music in Music Blocks:

Rhythm Palette:
  The Rhythm Palette contains blocks used to play music. Stacks of notes can be created using the Pitch block and the blocks on this palette. In addition to creating notes, you can transform the rhythmic value of notes using blocks such as dot, tie, duplicate notes, or multiply beat.

Pitch Palette:
  The Pitch Palette contains blocks used to create and modify pitches used by the Note block.

There are few more palettes which does various functions:

Running the project in different ways:
  The main toolbar contain several running modes, run in normal speed and slower speeds(for debugging).

Deleting blocks:
  Long press on the required block, then a recycle bin will appear on the bottom of the music blocks workspace.

Trash:
   Then drag the mouse over the recycle bin while pressing down the mouse button, once the colour of the recycle bin changes to red, simply release the mouse. The other way to delete is to use the “delete all” button of the auxiliary toolbar can be used to remove everything on the workspace.