BlocosIA Wiki Editor

Music

Play notes, chords and drums with many instruments.

To use it: in the editor, click "Extensions" (bottom corner) and add "Music".

Stack

use instrument [piano]

Chooses the instrument for the notes played by the Music blocks (piano, guitar, flute…).

Stack

set tempo to ( ) beats per minute

Changes the tempo: how many beats fit in one minute (120 is normal).

Reporter

tempo (beats per minute)

The current tempo, in beats per minute.

Stack

play note [C] in octave [3 (grave)] for [1 batida (semínima)]

Does an action. Snap it below another block.

Stack

play 4 notes (octave [3 (grave)], [1 batida (semínima)] each): [C] [C] [C] [C]

Does an action. Snap it below another block.

Stack

rest for ( ) beats

Does an action. Snap it below another block.

Stack

play note ( ) for ( ) secs with [piano]

Does an action. Snap it below another block.

Stack

play chord [C] [major] for ( ) secs with [piano]

Does an action. Snap it below another block.

Stack

play [bass drum] and wait ( ) secs

Does an action. Snap it below another block.

Stack

rest for ( ) secs

Does an action. Snap it below another block.

Stack

play note ( ) for ( ) beats

Plays a note by name (C4, D#, dó) or number (60 = middle C) for some beats.

Stack

play melody ( )

Plays a whole melody written as text, like "C D E:2 - G" (note:beats, "-" is a rest), or a list of notes.

Stack

play [bass drum] for ( ) beats

Plays a drum and waits some beats (rhythms at the right tempo).

Stack

play [bass drum] without waiting

Plays a drum right away, without waiting. Great for drum kits.

Reporter

name of note ( )

Turns a note number into its name (60 becomes C4).

Reporter

number of note ( )

Turns a note name into its number (A4 becomes 69).

Reporter

note playing

Name of the note playing now (empty during a rest).

Stack

listen to notes with the microphone: [on]

Turns the "ear" on or off: the microphone finds which note you sing, whistle or play. All in the browser, offline.

Hat

when I hear note [C]

Starts when the microphone hears a chosen note (or any note).

Reporter

note I hear

Name of the note the microphone hears (empty in silence).

Reporter

number of the note I hear

Number of the heard note (0 in silence).

Reporter

frequency I hear (Hz)

Frequency of the heard sound, in hertz (A4 = 440).

Reporter

tuning of the heard note (cents)

How far the note is out of tune, in cents: 0 is in tune, positive is too sharp, negative too flat. Good for tuners.