Basic+Sound+in+Scratch

There are many ways in which you can activate and use sound as a powerful element for your Scratch game. Here we will cover the following:

You can make a very simple soundtrack which lasts as long as your stage is 'active'. This would work well in a Title Screen or a Game Over screen (although not limited to this.) Please try the following code to see how they work:
 * How to make a simple soundtrack for your stage**


 * [[image:abcict/sound_p1.JPG]] || [[image:abcict/sound_p2.JPG]] ||

Try modifying the values and adding repeat loops until you reach a composition which you like. Feel free to change the tempo, beats and instruments!

Sprites often have complex behavior; whether they're reacting to a mouse-click, a key pressed or to some other element on stage, adding sound to your sprite brings out a new dimension in the way your game plays. It can be an easily recognizable 'positive' sound, like a ping or a bleep for a correct answer or behaviour, or a 'negative' sound, like a buzzer or an alarm for an incorrect answer or behavior. Please try the following code:
 * How to add a sound effect to your sprite**


 * [[image:sound_p3.JPG]] || [[image:Screen Shot 2013-11-12 at 9.46.01 AM.png]] ||

Make sure that your sound is properly placed within your programmed block sequence. In the second example above, you obviously need to have a "broadcast" which activates the "when I receive" code.

Keep in mind that placing a sound inside a "forever" loop or outside a "forever" loop can make a whole world of difference! Please test your sounds to make sure they are activated when they should be, if not, try moving the block of code somewhere else to see how differently it reacts. ALWAYS save different versions of your project, as you might find that as you move things around, they might stop working because the sequence is broken or altered.

Sound can also be used as an element which transmits valuable information to the player. In a spelling-bee type of game, sound would play a crucial element which drives the game forward. Please try using the Scratch sound recorder to record your own voice or sound:
 * How to use sound to transmit information to the player**.



Once you've recorded your sound, make sure to label it properly, as you might have noticed, once you've more than one sprite and more than one background, things can start getting very complex, and we need everything labeled properly if we're to make any sense of it later.


 * Question: //What would be the basic building blocks of code that I would need for a spelling-bee type of game?//**