Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

Transcript

In this video, you will learn how to make you Imaginator make noise.

First, add a sound to the project.

Click on the sounds tab, then on choose sound from library.

Use a short sound, so your Imaginator will react quicker when the space bar is pressed.

[Drum] After choosing a sound, click on it.

Next, program your project to play the sound.

There are two blocks that play sound.

Play sound, and play sound until done.

The play sound block plays a sound until another sound is played.

If you put a play sound block inside a loop the computer restarts the sound every time the loop runs.

So the sound never plays in its entirety.

You may not even hear it at all.

The play sound until done block, on the other hand, completes the sound before anything else happens in program.

Placing this block inside a loop makes the computer play the sound from beginning to end before it runs the loops again and replays the sound.

Place a play sound or play sound until done block in a spot in your program that makes sense to you.

Test it.

[Drums] Computer scientists test their code often to make sure it works, and figure out how to fix any problems or mistakes.

Now it's your turn.

Add a sound to your project.

Then use the play sound, or play sound until done blocks to program that sound to play.

Choose an Add-On
A Bigger Future
Add Another Image (Part 1 of 2)
Add Another Image (Part 2 of 2)
Program Introduction
Sound!
arrow_backward Back
Next arrow_forward
Instructions
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!
Attributions
  • BACKPACKING FAMILY WITH CHILDREN ON THEIR BACKS CROSSES THE BRIDGE AT MARCY DAM, NEW YORK, IN THE ADIRONDACK FOREST... - NARA - by Anne LaBastille (http://commons.wikimedia.org/wiki/File:BACKPACKING_FAMILY_WITH_CHILDREN_ON_THEIR_BACKS_CROSSES_THE_BRIDGE_
  • Obama family walks with First Dog Bo 4-14-09 by Chuck Kennedy (http://commons.wikimedia.org/wiki/File:Obama_family_walks_with_First_Dog_Bo_4-14-09.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • BenToddJealousFamily by Imperfect chaosimperfect_chaos (http://commons.wikimedia.org/wiki/File:BenToddJealousFamily.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Scott Speedster S50 by Jesús Rodriguez (http://commons.wikimedia.org/wiki/File:Scott_Speedster_S50.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Family playing a board game (1) by Bill Branson (http://commons.wikimedia.org/wiki/File:Family_playing_a_board_game_(1).jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Suzuki vstrom dl650 motorcycle by Ibanix (http://commons.wikimedia.org/wiki/File:Suzuki_vstrom_dl650_motorcycle.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Final 2013 Fencing WCH FMS-IN t200907 by Marie-Lan Nguyen (http://commons.wikimedia.org/wiki/File:Final_2013_Fencing_WCH_FMS-IN_t200907.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Family Eating Meal by National Cancer Institute (http://commons.wikimedia.org/wiki/File:Family_eating_meal.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Paris Motor Show 2012 (8065248951) by Nan Palmero (http://commons.wikimedia.org/wiki/File:Paris_Motor_Show_2012_(8065248951).jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Friends with Mobile Phones by Gary Knight (http://commons.wikimedia.org/wiki/File:Friends_with_Mobile_Phones.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • For Images in the Gallery linked aboved:
  • Tony Stewart 2005 at Infineon photo D Ramey Logan by WPPilot (http://commons.wikimedia.org/wiki/File:Tony_Stewart_2005_at_Infineon_photo_D_Ramey_Logan.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Sd11-boom by Xavier Romero-Frias (http://commons.wikimedia.org/wiki/File:Sd11-boom.JPG) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Three-man cup defense.jpeg by Sesse (http://en.wikipedia.org/wiki/File:Three-man_cup_defense_in_ultimate.jpeg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Tea Time In Japan by Tina Tsai (http://commons.wikimedia.org/wiki/File:Tea_Time_in_Japan.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Smart Car, are they easy to park on the door handles by Mick (http://commons.wikimedia.org/wiki/File:Smart_Car,_are_they_easy_to_park_on_the_door_handles_-_Flickr_-_mick_-_Lumix.jpg) licensed under CC-BY 2.0 (http://creativecommons.org/licenses/by/3.0/)