Show last authors
1 (% class="box infomessage" %)
2 (((
3 Plays the specified drum for the specified ammount of beats. The duration of a beat depends on the tempo.
4
5 [[image:Play_drum_for_beats.png||alt="set-instrument-brick.png"]]
6
7
8 )))
9
10 (% class="box" %)
11 (((
12 **Correlates with this brick:**
13
14 [[image:Set_tempo_to.png]]
15
16 [[Learn more ~>~>>>doc:Documentation.BrickDocumentation.SetTempoBrick.WebHome]]
17 )))
18
19 (% class="row" %)
20 (((
21 (% class="col-xs-12 col-sm-6" %)
22 (((
23 (% class="box" %)
24 (((
25 ==== **Example** ====
26
27 This example first saves different notes into a list.
28 When the panda is tapped the saved notes will be played by the specified instrument for one beat one after another while there is a pause of two beats between the notes.
29
30 [[image:Play_drum_for_beats_example_1.png||alt="Play_drum_for_beats_example.png"]]
31 [[image:Play_drum_for_beats_example_2.png||alt=""]]
32
33
34 )))
35 )))
36
37 (% class="col-xs-12 col-sm-6" %)
38 (((
39 (% class="box" %)
40 (((
41 ==== **Result** ====
42
43 [[[[image:Documentation.BrickDocumentation.BackgroundRequestBrick.WebHome@null4.png||alt="Download"]]>>https://share.catrob.at/pocketcode/project/34642]]
44
45 [[image:Documentation.BrickDocumentation.PauseForBeatsBrick.WebHome@sound.gif]]
46
47
48 )))
49 )))
50 )))