NXC: Making Music BricxCC has a built-in utility to convert .wav files into .rso files accessible via menu Tools, Sound conversion. Then you can store.

Slides:



Advertisements
Similar presentations
Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
Advertisements

Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
Review for Excel Chapter 1
NQC: Music The RCX can play various prepackaged sounds using the function PlaySound(XXX); where XXX constants defined in NQC. Ref Braun Ch 3 p. 40 and.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Introduction to LabVIEW Seth Price Department of Chemical Engineering New Mexico Tech Rev. 10/5/14.
Methods Tutorial: Part One By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 9, 2008.
Introduction to NXT Software and Functionality Bot’oberfest October 15, 2007.
Reviewing Common Blocks for St. Agnes Elementary School Teachers by Jenny Chang Feb. 26th, 2007 USC & University Neighborhood Outreach Robotics STEM program.
How to Use The Borland C++ Compiler Version 5
First create a folder with your pictures/ images needed to create the story Then open Photostory 3. Click on begin a new story and click next.
Audio and Video on the Web Sec 5-12 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Loops and Switches. 1. What kind of blocks are these? 2. Name two kinds of controls that can be specified to determine how long a loop repeats. 3. Give.
Integrating Microsoft Project with Other Programs
John Oates AST Primary Music 1 Audacity – Soundscapes for Literacy Audacity – Audio Editor Primary Inset – Westbrook Old Hall Primary.
12. Visual Basic If Statements and Do Loops. Open 12b-datastart.xlsm.
ICP Kit 2011 HHC Data Entry Module The World Bank ICP Kit Training African Development Bank.
To download PhotoStory: Go to On the left side under Product Resources, click on Downloads.
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
CSCI 394© 2007 JW Ryder1 NXC Information  Not eXactly C  very similar to NQC  Currently has more NXT API supported than LeJOS NXJ   Uses.
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
Sound on the Web. Using Sound on a Web Site Conveying information  pronounce a word or describe a product Set a mood  music to match the web page scene.
Copyright © 2003 Pearson Education, Inc. Chapter 5 – Slide 1 by Michael Kay The Web Wizard’s Guide to Flash.
Create New Podcast. Tracks Window New Basic Track.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
A tiny turtle robot DEI The University of Padova.
Project Deployment IT [211 CAP] How to convert your project to a full application.
ACTIVINSPIRE TRAINING Tips and tools for creating Flipcharts on ActivInspire.
NXC (and NBC) NXC (Not eXactly C) is a language similar to NQC, which was the most popular way to program the RCX Built on NBC, the Next Byte Code ‘assembler’
1 Chapter 12 – Web Applications 12.1 Programming for the Web, Part I 12.2 Programming for the Web, Part II 12.3 Using Databases in Web Programs.
Georgia Institute of Technology Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Sept 2005.
Lists Tutorial By Deborah Nelson Duke University Professor Susan Rodger July 13, 2008.
Motors and Sound Troubleshooting Tips. © H-CCS Problem 1 Why can’t I download my program to the RCX?
Download you-tube video. Step 1: Open Youtube Downloader Click to open Youtube Downloader.
Mixing integer and floating point numbers in an arithmetic operation.
Praat LING115 November 4, Getting started Basic phonetic analyses with Praat –Creating sound objects Recording, reading from a file, creating from.
According to the image, what is the file name? According to the image, what is the program name? Quiz Example.ev3 Falcon.
Lego MindStorm An Introduction to Blocks. Blocks Blocks are used to give instructions to your robot. There are many types of blocks You can use the blocks.
1 ENGI 2420 Structured Programming (Lab Tutorial 7) Memorial University of Newfoundland.
Castor Bot. Now, we will begin creating a robot Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions.
Bunny Eat Broccoli Repetition – Simple loops and Conditional loops Susan Rodger Duke University July 2011.
Working with Disks Lesson 4. Skills Matrix Technology SkillObjective DomainObjective # Configuring Data Protection Configure data protection6.4 Using.
How to connect your NXT via Bluetooth A step-by-step instruction.
Labview Introduction Writing and Saving your first program.
Sound and the Web. Transferring sound Download Progressive Download Stream.
Intro-Sound-part1 Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Oct 2009.
Slide 1 Using Menu Bar & Common Dialog Boxes. Slide 2 Setting Up the Main Items v First open the form on which you want the menu located v Then start.
© Crown copyright Met Office PRECIS Hands-on Demo with IDV PRECIS Reading Workshop, August 2009.
Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
1 ENGI 2420 Structured Programming (Lab Tutorial 7) Memorial University of Newfoundland.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Repetition everywhere – comparing while in a method and as an event Susan Rodger Duke University July 2010.
Scratch Programming Lesson 1 Moving objects with sound and changing colours.
12-3 Harmonics.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
To import music or sound effects, save it to your computer then click FILE-IMPRT-AUDIO.
EV3 Hardware: Anything you can see or touch EV3 Software: Programs written by you Firmware: Programs/Instructions written by the manufacturer.
BEGINNER PROGRAMMING LESSON
Using the Lego Mindstorms Edu NXT Software
Teaching Characters to Walk: Learning Methods, Part 1
Hardware, Software & Firmware
Displaying sensor values while a robot is running
Go to your I Tunes Library and fine your song
Inserting Sounds.
1. Open Visual Studio 2008.
Starting a project in VisualDSP++
Compiled from various Internet sources Presented by Mr. Hatfield
Getting the software Install Fantom driver
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

NXC: Making Music BricxCC has a built-in utility to convert .wav files into .rso files accessible via menu Tools, Sound conversion. Then you can store .rso sound files on NXT flash memory using another utility, the NXT memory browser (Tools, NXT explorer) and play them with the command: PlayFilesEx (filename, volume, loop?) Where volume is a number from 0 to 4 and loop is 1 (TRUE) or 0 (FALSE)

Music PlayToneEx(frequency, duration, volume, loop) This command plays a note with the given frequency for the specified duration. The frequency is in Hz, so 440 is the pitch of the A above middle C on a piano. The duration is in thousandths of a second. You can only specify integer values for the frequency, so don't expect the pitches to be exactly in tune. No one expects your little robot to sound like Placido Domingo.

Middle C http://www.vibrationdata.com/piano.htm Goldennumber.net

As with the case of PlayFileEx, the NXT does not wait for the note to finish. So if you use multiple tones in a row then you will need to add (slightly longer) wait commands in between.

Example #define VOL 3 task main () { PlayToneEx(262, 400, VOL, FALSE); Wait(500); PlayToneEx(294, 400, VOL, FALSE); Wait(500); PlayToneEx(330, 400, VOL, FALSE); Wait(500); }

Loading Sound File to nxt Find and Download Sound File to BricxCC Directory

Directory to which file is saved

Convert .wav to .rso Invoke sound conversion tool from BricxCC

Convert .wav to .rso (cont) Select directory containing .wav file

Convert .wav to .rso (cont) Press “Select Files…” Select the file Press “Open”

Convert .wav to .rso (cont) Press “Convert”

Convert .wav to .rso (cont) Select Linear Sample and reduce the value for “Rate” until file is converted with no error

Convert .wav to .rso (cont)

Convert .wav to .rso (cont) Press “OK”

Load .rso File onto Brick Invoke NXT Explorer

Load .rso File onto Brick (continued) With Brick powered on, select desired .rso file and press “Download” Note: If a .rso file has previously been loaded onto the brick, it may be necessary to delete it.

Test Sound File on Brick By highlighting the . rso file in the left panel, and clicking the green note the file can be played on the brick

Download Code Write, compile and download music file playing code to brick