Wiki source code of SetTempoBrick
Last modified by admin on 2023/09/30 09:33
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="box infomessage" %) | ||
2 | ((( | ||
3 | This brick sets the tempo of the notes played. A higher tempo correlates to a the notes beeing played faster. | ||
4 | |||
5 | [[image:Set_tempo_to.png||alt="set-tempo-to-brick.png"]] | ||
6 | |||
7 | |||
8 | ))) | ||
9 | |||
10 | (% class="box" %) | ||
11 | ((( | ||
12 | **Correlates with this brick:** | ||
13 | |||
14 | [[image:Change_tempo_by.png]] | ||
15 | |||
16 | [[Learn more ~>~>>>doc:Documentation.BrickDocumentation.ChangeTempo.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 notes are first played with a tempo of 120. After that they are played again with a tempo of 240. | ||
29 | [[image:Set_tempo_to_example_1.png||alt="Set_tempo_to_example.png"]] | ||
30 | [[image:Set_tempo_to_example_2.png]] | ||
31 | |||
32 | ))) | ||
33 | ))) | ||
34 | |||
35 | (% class="col-xs-12 col-sm-6" %) | ||
36 | ((( | ||
37 | (% class="box" %) | ||
38 | ((( | ||
39 | ==== **Result** ==== | ||
40 | |||
41 | [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/pocketcode/project/34642]] | ||
42 | |||
43 | [[image:Documentation.BrickDocumentation.PauseForBeatsBrick.WebHome@sound.gif]] | ||
44 | |||
45 | |||
46 | ))) | ||
47 | ))) | ||
48 | ))) |