Scratch Programming Case - playing music

https://www.kidscoding8.com/87969.html

Site can share scratch work, come while studying the creation of it, click on the online creation

   Four out of scholars, who must teach aware of. The school is also people, or lose is more, or lose the widowed, or is easy to lose, or lose it stops. Here the four, the heart of Mo with also. Know the heart and can save their loss also. Who also teach, good and save his long lost also. -. "Book of Rites Learning" Chapter 11

 


 

Today to share the programming case is to use Scratch to play music:

 

1, source code sharing:

 

Scratch Programming --2019.5.21 Programming Case - playing music

Scratch Programming --2019.5.21 Programming Case - playing music

2, the code analysis:

(1) Click on the lower left corner of the software add extensions button, select the "Music" module, add it to the code group:

Scratch Programming --2019.5.21 Programming Case - playing music

Scratch Programming --2019.5.21 Programming Case - playing music

Scratch Programming --2019.5.21 Programming Case - playing music

(2) Set play type music:

Scratch Programming --2019.5.21 Programming Case - playing music

(3) set to music pitch and beat length

Scratch Programming --2019.5.21 Programming Case - playing music

(4) operating sequentially, until all the notes All set

Scratch Programming --2019.5.21 Programming Case - playing music

(5) Since the long code module, so after the first one has finished playing the song, the broadcast message is provided

Scratch Programming --2019.5.21 Programming Case - playing music

(6) When 1 receives the message, the second sentence score to continue playing

Scratch Programming --2019.5.21 Programming Case - playing music

(7) Overall analysis:

 

Scratch Programming --2019.5.21 Programming Case - playing music

Guess you like

Origin blog.csdn.net/weixin_40897235/article/details/90474712