|Play Drum () for () Beats|
play drum ( v) for () beats
The Play Drum () for () Beats block is a music block and a stack block. The block will play the specified instrument for the specified amount of seconds using a sampled percussion instrument. Even though the block uses the word "drum", the choices in the drop-down menu are many different percussion instruments including drums, triangle, bongos, cowbell, vibraslap, and various idiophones.
This block used to be called Play Drum () for () Secs, but was changed because the length of a beat can now be changed with the Set Tempo by () bpm block.
Entering a value less than 0 or greater than 18 for the drum will cause the drum selection to be looped (for example, attempting to play drum 19 will play drum "(1) Snare Drum"). The number entered will also be rounded to the nearest whole number.
As the block plays an instrument, it is widely used when a song is played with the Sound blocks.
Some common uses for the Play Drum () for () Beats block:
- Easy sound effects (some of the choices in the drop-down menu are sound effects such as a clap)
play drum (8 Hand Clap v) for (0.25) beats
- Musical projects where you control instruments
when gf clicked repeat until <<(answer) > > and <(answer) < >> ask [Drum?] and wait end forever if <(loudness) > > then play drum (answer) for (0.1) beats end end
- Creating a song made by blocks
play drum (2 Bass Drum v) for (0.2) beats play note (60) for (0.6) beats play drum (2 Bass Drum v) for (0.2) beats
Unlike sheet music, the block uses numbers to notate rhythm. This table shows the beat number values for the most common rhythms in the most common time signatures, interpreted in the most basic way.
|This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.|
play drum (10) for (10) beats :: sound
In the switch from Scratch 1.4 to Scratch 2.0, some of the drums were not available in Flash. To deal with that, there are two versions of the drum block. The obsolete one is the one that was used in Scratch 1.4 projects.