Show last authors
1 (% class="box infomessage" %)
2 (((
3 This brick changes the instrument to the specified instrument. After using this brick, all notes are played with this instrument.
4
5 [[image:set-instrument-brick.png]]
6
7
8 )))
9
10 (% class="row" %)
11 (((
12 (% class="col-xs-12 col-sm-6" %)
13 (((
14 (% class="box" %)
15 (((
16 ==== **Example** ====
17
18 This example first saves different notes into a list.
19 When the panda is tapped the notes are played two times at the same time.
20 For playing the saxophone we pause for two beats, then change the instrument to the saxophone and play the note.
21 For playing the piano we change the instrument to the saxophone and play the note, then we pause for 2 beats.
22
23 We now should hear something like: "piano" "pause" "saxophone" ... "piano" "pause" "saxophone" and so on.
24
25 [[image:Set_Instrument_to_example_1.png||alt="Set_Instrument_to_example.png"]]
26 [[image:Set_Instrument_to_example_2.png]]
27 [[image:Set_Instrument_to_example_3.png]]
28
29
30 )))
31 )))
32
33 (% class="col-xs-12 col-sm-6" %)
34 (((
35 (% class="box" %)
36 (((
37 ==== **Result** ====
38
39 [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/pocketcode/project/34642]]
40
41 [[image:Documentation.BrickDocumentation.PauseForBeatsBrick.WebHome@sound.gif]]
42
43
44 )))
45 )))
46 )))