Page 33 - 2501_KVS_C-4
P. 33

3.1.6 “set…effect to…” block

                 This block is used to set the pitch effects of sounds to a particular value.
                    Gowri: We can also stop the sound when we want and also remove all effects added above with
                    the following 2 options:-

                 3.1.7 “stop all sounds” block

                 This block is used to remove or stop all the sounds.

                 3.1.8 “clear sound effects” block

                 This block is used to remove all the sound effects added in the sound by changing
                 its pitch.





                               Activity 3.1

                   Add a “Tabla” sprite in your project and then it will play sounds when we click on
                   the Flag and increase volume or pitch (any one) of the sound by 30 every time.
                   Repeat the process 4 times.

                   Ans:

                   Step 1:   Add a sprite Tabla (from music tab) in Scratch and click on “Events”
                              block, and drag “when flag clicked” block in the script area.

                   Step 2:     From  the  sound  block  we  will  drag  the  “clear
                                  sound effects”, “set volume to 100” and “start
                                  sound” blocks in the script area, which is used to

                                  start a sound. Then choose any sound of tabla.
                                  (e.g. Hi Tun Tabla).
                                 Drag “wait..seconds” block in the script area, which

                                  is used to wait for no. of seconds after playing sound.
                                  Change value 1 to any number (e.g. 2 in Fig. 3.1)

                                 Drag “Change volume by -10” block in the script                    Fig. 3.1
                                  area, which is used to increase or decrease the sound of Tabla.
                                  Minus symbol (-) is used to decrease the sound. So, change its value
                                  to 30 to increase the sound by 30.

                                 Then drag “play sound … until done” block in the script area, to play
                                  a sound completely. Now choose any sound of tabla. (e.g. Hi Tun

                                  Tabla). So, there is no need for a “wait” block, as it finishes the
                                  sound completely before moving to the next script.





                                                                                      Scratch                       31
   28   29   30   31   32   33   34   35   36   37   38