Eng:Play Note () for () Beats (block)

The Play Note for  Beats block is a Sound block and a Stack block. The block will play the specified note with a set MIDI instrument for the specified amount of beats.

Prior to Scratch 1.2, this block used to be called Play Note for  Secs, but was changed because the length of a beat can now be changed with the Set Tempo to  bpm block.

Example Uses
As the block plays a note, it is widely used when a song is played with the Sound blocks.

Some common uses for the Play Note for  Beats block:
 * Easy sound effects (numbers above 88 still work); very high and low notes make interesting sounds

repeat until <(x) = [0]> play note (x) for (0.1) beats change [x v] by (-1) end


 * Musical projects where you control instruments

forever play note ((mouse y) mod (129)) for (0.1) beats


 * Creating a song made by blocks

repeat (2) play note (62 v) for (0.5) beats End repeat (2) play note (69 v) for (0.5) beats End repeat (2) play note (81 v) for (0.5) beats End play note (69 v) for (0.5) beats

Notation
The Play Note for  Beats can sometimes be tricky to get used to since the notes and rhythms are notated with numbers, unlike sheet music. These diagrams may help:

Beats
This table shows the beat number values for the most common rhythms in the most common time signatures, interpreted in the most basic way.