m
m (you didn't fix no-space-pre)
(27 intermediate revisions by 17 users not shown)
Line 6: Line 6:
 
|defaults = 48; 0.2
 
|defaults = 48; 0.2
 
}}
 
}}
The '''Play Drum () for () Beats''' [[Blocks|block]] is a [[Sound Blocks|Sound block]] and a [[Stack Block|Stack block]]. The block will play the specified instrument for the specified amount of seconds using a MIDI drumset. 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 [[Wikipedia:Idiophone|idiophones]].
+
[[File:Play Drum Drop-Down Menu.PNG|thumb|right|The drop-down menu for the block.]]
 +
The '''Play Drum () for () Beats''' [[Blocks|block]] is a [[Sound Blocks|Sound block]] and a [[Stack Block|Stack block]]. The block will play the specified instrument for the specified amount of seconds using a MIDI drumset. 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 [[Wikipedia:Idiophone|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 to () bpm (block)|Set Tempo by () bpm]] block.
+
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 to () bpm (block)|Set Tempo by () bpm]] block.
==Notation==
 
Unlike sheet music, the block uses numbers to notate rhythm. This table could help when taking a rhythm from music. It shows the beats number values for the most common rhythms in the most common time signatures, interpreted in the most basic ways.
 
{| class="wikitable" border="1"
 
|-
 
|<!--col1-->
 
|<!--col2-->[[File:WholeNote.png|35px]]
 
|<!--col3-->[[File:DottedHalf.png|30px]]
 
|<!--col4-->[[File:HalfNote.png|30px]]
 
|<!--col5-->[[File:DottedQuarterNote.png|30px]]
 
|<!--col6-->[[File:QuarterNote.png|25px]]
 
|<!--col7-->[[File:QuarterTriplets.png|45px]]
 
|<!--col8-->[[File:Dotted8th.png|25px]]
 
|<!--col9-->[[File:8thNote.png|30px]]
 
|<!--col10-->[[File:8thTriplets.png|40px]]
 
|<!--col11-->[[File:Dotted16th.png|30px]]
 
|<!--col12-->[[File:16thNote.png|20px]]
 
|-
 
|<!--col1-->[[File:TimeSig4.png]]
 
|<!--col2-->4
 
|<!--col3-->3
 
|<!--col4-->2
 
|<!--col5-->1.5
 
|<!--col6-->1
 
|<!--col7-->0.67
 
|<!--col8-->0.75
 
|<!--col9-->0.5
 
|<!--col10-->0.33
 
|<!--col11-->0.375
 
|<!--col12-->0.25
 
|-
 
|<!--col1-->[[File:TimeSig8.png]]
 
|<!--col2-->8
 
|<!--col3-->6
 
|<!--col4-->4
 
|<!--col5-->3
 
|<!--col6-->2
 
|<!--col7-->1.33
 
|<!--col8-->1.5
 
|<!--col9-->1
 
|<!--col10-->0.67
 
|<!--col11-->0.75
 
|<!--col12-->0.5
 
|-
 
|<!--col1-->[[File:TimeSig2.png]]
 
|<!--col2-->2
 
|<!--col3-->1.5
 
|<!--col4-->1
 
|<!--col5-->0.75
 
|<!--col6-->0.5
 
|<!--col7-->0.33
 
|<!--col8-->0.375
 
|<!--col9-->0.25
 
|<!--col10-->0.167
 
|<!--col11-->0.1875
 
|<!--col12-->0.125
 
|-
 
|}<!--end wikitable-->
 
  
==Example Uses==
+
Entering a negative value, 0, or any value above 18 for the drum will use the "(3) Side Stick" drum.
 +
 
 +
== Example Uses ==
 
As the block plays an instrument, it is widely used when a song is played with the Sound blocks.
 
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:
+
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)
+
* Easy sound effects (some of the choices in the drop-down menu are sound effects such as a clap)
  
<scratchblocks>play drum (39 v) for (1) beats</scratchblocks>
+
<scratchblocks>play drum (8 v) for (0.25) beats</scratchblocks>
  
*Musical projects where you control instruments
+
* Musical projects where you control instruments
  
 
<scratchblocks>when gf clicked
 
<scratchblocks>when gf clicked
forever if <loud?>
+
repeat until <<(answer) > [26]> and <(answer) < [88]>>
repeat until <<(answer) > [38]> and <(answer) < [82]>>
 
 
ask [Drum?] and wait
 
ask [Drum?] and wait
 
end
 
end
set [drum v] to (answer)</scratchblocks>
 
 
<scratchblocks>when gf clicked
 
 
forever
 
forever
play drum (drum) for (0.1) beats</scratchblocks>
+
if <<loudness?> > [10]> then
 +
play drum (answer) for (0.1) beats
 +
end</scratchblocks>
  
*Creating a song made by blocks
+
* Creating a song made by blocks
  
 
<scratchblocks>play drum (48 v) for (0.2) beats
 
<scratchblocks>play drum (48 v) for (0.2) beats
Line 94: Line 38:
 
play drum (47 v) for (0.2) beats</scratchblocks>
 
play drum (47 v) for (0.2) beats</scratchblocks>
  
==See Also==
+
== Rhythm Notation ==
*[[Rest for () Beats (block)|Rest for () Beats]]
+
Unlike sheet music, the block uses numbers to notate rhythm. This table could help when taking a rhythm from music. It shows the beats number values for the most common rhythms in the most common time signatures, interpreted in the most basic ways.
*[[Play Note () for () Beats (block)|Play Note () for () Beats]]
+
{| class="wikitable" border="1"
 +
|-
 +
|<!--col1-->
 +
|<!--col2-->[[File:WholeNote.png|35px]]
 +
|<!--col3-->[[File:DottedHalf.png|30px]]
 +
|<!--col4-->[[File:HalfNote.png|30px]]
 +
|<!--col5-->[[File:DottedQuarterNote.png|30px]]
 +
|<!--col6-->[[File:QuarterNote.png|25px]]
 +
|<!--col7-->[[File:QuarterTriplets.png|45px]]
 +
|<!--col8-->[[File:Dotted8th.png|25px]]
 +
|<!--col9-->[[File:8thNote.png|30px]]
 +
|<!--col10-->[[File:8thTriplets.png|40px]]
 +
|<!--col11-->[[File:Dotted16th.png|30px]]
 +
|<!--col12-->[[File:16thNote.png|20px]]
 +
|-
 +
|<!--col1-->[[File:TimeSig4.png]]
 +
|<!--col2-->4
 +
|<!--col3-->3
 +
|<!--col4-->2
 +
|<!--col5-->1.5
 +
|<!--col6-->1
 +
|<!--col7-->0.67
 +
|<!--col8-->0.75
 +
|<!--col9-->0.5
 +
|<!--col10-->0.33
 +
|<!--col11-->0.375
 +
|<!--col12-->0.25
 +
|-
 +
|<!--col1-->[[File:TimeSig8.png]]
 +
|<!--col2-->8
 +
|<!--col3-->6
 +
|<!--col4-->4
 +
|<!--col5-->3
 +
|<!--col6-->2
 +
|<!--col7-->1.33
 +
|<!--col8-->1.5
 +
|<!--col9-->1
 +
|<!--col10-->0.67
 +
|<!--col11-->0.75
 +
|<!--col12-->0.5
 +
|-
 +
|<!--col1-->[[File:TimeSig2.png]]
 +
|<!--col2-->2
 +
|<!--col3-->1.5
 +
|<!--col4-->1
 +
|<!--col5-->0.75
 +
|<!--col6-->0.5
 +
|<!--col7-->0.33
 +
|<!--col8-->0.375
 +
|<!--col9-->0.25
 +
|<!--col10-->0.167
 +
|<!--col11-->0.1875
 +
|<!--col12-->0.125
 +
|-
 +
|}<!--end wikitable-->
 +
 
 +
== Obsolete Version ==
 +
{{obsolete feature}}
 +
<sb>play drum (10) for (10) beats :: obsolete</sb>
 +
 
 +
In the switch from [[Scratch 1.4]] to Scratch 2.0, some of the drums were not available in flash/browsers. 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.
 +
 
 +
== See Also ==
 +
* [[Rest for () Beats (block)|Rest for () Beats]]
 +
* [[Play Note () for () Beats (block)|Play Note () for () Beats]]
 
{{Sound Blocks}}
 
{{Sound Blocks}}
 +
 
[[Category:Sound Blocks]]
 
[[Category:Sound Blocks]]
 +
 +
[[de:Spiele Schlagwerk () für () Schläge (Block)]]
 +
[[ja:() のドラムを () 拍鳴らす (ブロック)]]
 +
[[ru:Барабану () играть () тактов]]

Revision as of 14:26, 19 July 2018

Play Drum () for () Beats
2.0 Play Drum () for () Beats.png
Category Sound
Type Stack
The drop-down menu for the block.

The Play Drum () for () Beats block is a Sound block and a Stack block. The block will play the specified instrument for the specified amount of seconds using a MIDI drumset. 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 negative value, 0, or any value above 18 for the drum will use the "(3) Side Stick" drum.

Example Uses

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 v) for (0.25) beats
  • Musical projects where you control instruments
when gf clicked
repeat until <<(answer) > [26]> and <(answer) < [88]>>
ask [Drum?] and wait
end
forever
if <<loudness?> > [10]> then
play drum (answer) for (0.1) beats
end
  • Creating a song made by blocks
play drum (48 v) for (0.2) beats
play note (60 v) for (0.6) beats
play drum (47 v) for (0.2) beats

Rhythm Notation

Unlike sheet music, the block uses numbers to notate rhythm. This table could help when taking a rhythm from music. It shows the beats number values for the most common rhythms in the most common time signatures, interpreted in the most basic ways.

WholeNote.png DottedHalf.png HalfNote.png DottedQuarterNote.png QuarterNote.png QuarterTriplets.png Dotted8th.png 8thNote.png 8thTriplets.png Dotted16th.png 16thNote.png
TimeSig4.png 4 3 2 1.5 1 0.67 0.75 0.5 0.33 0.375 0.25
TimeSig8.png 8 6 4 3 2 1.33 1.5 1 0.67 0.75 0.5
TimeSig2.png 2 1.5 1 0.75 0.5 0.33 0.375 0.25 0.167 0.1875 0.125

Obsolete Version

Archive.png 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 :: obsolete

In the switch from Scratch 1.4 to Scratch 2.0, some of the drums were not available in flash/browsers. 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.

See Also