(See also)
Line 7: Line 7:
 
}}
 
}}
 
The '''Rest for () Beats''' [[Blocks|block]] is a [[Sound Blocks|Sound block]] and a [[Stack Block|Stack block]]. The block pauses its [[Script|script]] for the specified amount of beats - the amount of beats can be a decimal number. To change the length of beats, the [[Change Tempo by () (block)|Change Tempo by ()]] block and the [[Set Tempo to () bpm (block)|Set Tempo to () bpm]] block can be used.
 
The '''Rest for () Beats''' [[Blocks|block]] is a [[Sound Blocks|Sound block]] and a [[Stack Block|Stack block]]. The block pauses its [[Script|script]] for the specified amount of beats - the amount of beats can be a decimal number. To change the length of beats, the [[Change Tempo by () (block)|Change Tempo by ()]] block and the [[Set Tempo to () bpm (block)|Set Tempo to () bpm]] block can be used.
 +
 +
The block's default value is 0.2.
 
==Workaround==
 
==Workaround==
 
This block can be replicated with the following code:
 
This block can be replicated with the following code:

Revision as of 18:01, 2 March 2011

Rest for () Beats
Rest for () Beats.png
Category Sound
Type Stack

The Rest for () Beats block is a Sound block and a Stack block. The block pauses its script for the specified amount of beats - the amount of beats can be a decimal number. To change the length of beats, the Change Tempo by () block and the Set Tempo to () bpm block can be used.

The block's default value is 0.2.

Workaround

This block can be replicated with the following code:

File:ReplacementForRestBlock.gif

Notation

Unlike sheet music, the block uses number values to determine the beats. This table shows the beat number values for the most common rests in the most common time signatures, interpreted in the most basic ways.

WholeRest.png HalfRest.png QuarterRest.png 8thRest.png 16thRest.png
TimeSig4.png 4 2 1 0.5 0.25
TimeSig8.png 8 4 2 1 0.5
TimeSig2.png 2 1 0.5 0.25 0.125

Example Uses

As the block will pause its script with beats instead of seconds, it is widely used in music scripts where there must be pauses that fit the beat.

Some common uses for the Rest for () Beats block:

  • Pauses in songs made with the "play note/drum" blocks
  • A pause in sound effects made with the Sound blocks
  • A music generator

See also