Set instrument to [instrument]

Last modified by admin on 2023/09/30 09:30

This brick changes the instrument to the specified instrument. After using this brick, all notes are played with this instrument.

set-instrument-brick.png

 

Example

This example first saves different notes into a list.
When the panda is tapped the notes are played two times at the same time.
For playing the saxophone we pause for two beats, then change the instrument to the saxophone and play the note.
For playing the piano we change the instrument to the saxophone and play the note, then we pause for 2 beats.

We now should hear something like: "piano" "pause" "saxophone" ... "piano" "pause" "saxophone" and so on.

Set_Instrument_to_example.png
Set_Instrument_to_example_2.png
Set_Instrument_to_example_3.png

 

Result

Download

sound.gif