LEGO Engineering

| | | | | | | |
How can I program my NXT to play a song?


19th of April, 2010

(3 )
100% thumbs up 0% thumbs down

To play a song on your NXT, use the 'play sound' icon.  Once this is within your program, you have two options:

Firstly, there are many pre-programmed songs and sounds from which you can choose, so if one of those fits your needs, then you're all set!

Secondly, you can string together multiple sound icons to create a song.  Each one can be set to play a note for a certain amount of time.  If you know the 'tab' for your song, so to speak (i.e. the notes that make it up, and roughly how long they are held), then you can program a song like that as well.  Note that the 'duration' that the note is held is measured in tenths of a second here.

<-- the sound icon looks like this

This shows the options used to create your own song. The keyboard should have all the notes you'll need, and the letter corresponding to the note appears as the mouse runs over the keys.



   :
   :
* :
* :
 


Home | About Us | Contact Us

© 2013 Center for Engineering Educational Outreach, Tufts University
© 2013 The LEGO Group. All rights reserved.