Making Music with VEX Mike Martin King High School, Riverside, CA

Slides:



Advertisements
Similar presentations
Molasky Bands Music – A Definition (this is the stuff that appears on tests!!) Music - ORGANIZED SOUND (Yeah, thats it…..nothing else!!!) ORGANIZED.
Advertisements

Notes and Note Values Middle School Music
Rest Duration Ms. Delgados Music Class. Rest Duration A Whole Rest receives four full beats.
February 12, 2013 COMP Introduction to Programming For Statement and More Loops Haohan Li TR 11:00 – 12:15, SN 011 Spring 2013.
ROBOTC for CORTEX While Loops Part 1
08/2012Tanya Mishra1 EASYC for VEX Cortex Llano Estacado RoboRaiders FRC Team 1817.
Engineering Roles We will be forming groups of 3 students
Welcome to Music! By Mrs. Perry. Did you know that making music is a lot like cooking?
Beginner’s guide.  Look at the staffs ________________________  Bars connect the staffs that are played at the same time.  Look for the choir brace.
Automation and Robotics
VEX and Robot C Chris Patterson Presented by Modified by J. Andazola.
Developed in collaboration with Introduction to Programming.
PLTW and Common Core PLTW State Conference, Sacramento, California
Blues. Starting Point/ Inspiration The Thrill has Gone – BB King M.
Beat and Tempo Time Signatures. Beat Beat  is a unit of measurement. The beat is related to the pulse/feel of the music, which is related to the time.
Remote Control- RobotC
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Games and Simulations O-O Programming in Java The Walker School
A quarter note is a note that, in a 4/4 time signature, receives 1 beat. In the 4/4 time signature, there are 4 beats per measure, so one quarter note.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Testbed: Exercises.
A quadratic equation is a second degree polynomial, usually written in general form: The a, b, and c terms are called the coefficients of the equation,
Making Music with the Arduino Uno Mike Martin King High School, Riverside, CA PLTW State Conference – February 19, 2015
ROBOTC for VEX On-Site Professional Development
Iteration. Adding CDs to Vic Stack In many of the programs you write, you would like to have a CD on the stack before the program runs. To do this, you.
Warm up Add the following polynomials x + 2y = 10 5y – x = 7 + 4x – 3y = 1 + 9y + 4x = -1.
Introduction to TouchDevelop
Robot C and Natural Language
Lesson Two Duration. Beat Stop for a minute and feel your pulse. If you are sitting in one place, your heart will probably be beating very regularly.
Automated Mechanisms Help. Potentiometers Potentiometer Check –Analog Port 2 How they work –Analog sensor –Measures rotation of a shaft between 0 and.
1 Audible Alert for Return Item on Hold rep_ver in V20 Yoel Kortick Aleph Support Manager.
Programming - Motion Intro to Robotics. Motors and Sensors Setup The first thing we need to do is tell ROBOTC that we have motors on our robot. Choose.
Let’s Practice Putting in Sound! Learn Powerpoint 2007!
VEX and Robot C Chris Patterson Frisco ISD CTE Center Presented by.
Let’s----- go play now. Let’s--- go--- play now. Let’s go play--- now---. Let’s go--- play now.
How to make a Line Follow program Using EV3 software and an NXT light sensor.
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
Vex Robotics program three: using motors and sensors together.
Robot C and Natural Language. Create a folder Create a folder on your desktop to insert all your Robot C files, Here you will begin with your template.
Project Overview  Introduction  Clawbot Build  Design Modification  Design Development  Programming  Sensors  Advanced Sensors  Open design challenges.
Programming Design ROBOTC Software. Behavior-Based Programming A behavior is anything your robot does –Turning on a single motor or servo Three main types.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
Robotics Education & Competition Foundation
Programming Design ROBOTC Software Principles Of Engineering
Introduction to Programming in RobotC
INTRODUCTION TO ROBOTICS Part 5: Programming
Val Manes Department of Math & Computer Science
Robotics Programming Using Shaft Encoders
Project Overview Introduction Clawbot Build Design Modification
Automation and Robotics
Notes and Note Values Middle School Music
Using variables, for..loop and functions to help organize your code
Automation and Robotics
Music Notes and their Values.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Boolean Bingo!.
Warm up + 4x – 3y = 1 + 9y + 4x = -1 Add the following polynomials 2.
Basketball Drill Programming Alternatives
Topics: Programming Constructs: loops & conditionals Digital Input
Game Loop Update & Draw.
Section 2-4: Writing Linear Equations
Programming Design ROBOTC Software Principles Of Engineering
Beginner’s guide How to Read Music.
Robotics Programming Using Shaft Encoders
Ms. Delgado’s Music Class
Robotics Programming Using Shaft Encoders
Put the on A on the keyboard.
Fraction of the Beat.
Section 2-4: Writing Linear Equations
Presentation transcript:

Making Music with VEX Mike Martin King High School, Riverside, CA PLTW State Conference – February 19, 2015 mmartin@rusdlearns.net

Introduction Teaching kids to write programming code has become a priority for STEM programs like PLTW. Many of our PLTW students are also involved with music, whether band, choir, or off-campus. Learning to program music can add another component to an already fun, challenging, and rewarding POE class.

Music Theory Frere Jacques / Brother John 4/4 Time Quarter Notes Half Notes Eighth Notes Measures - Bars What do you notice about the measures and bars?

Music Theory There are 4 groups of notes that are repeated twice. This allows us to simplify our programming.

Programming the VEX Cortex How do we program a note? Frequency – each note must have a different frequency. Middle C – also called C4

Programming the VEX Cortex How do we program a note? Let’s use Variables to represent each frequency. Let’s use Variables to also represent the quarter and half notes.

Programming the VEX Cortex How do we program a note? What command do we use to play a note on the VEX Cortex using RobotC?

Programming the VEX Cortex How do we program a note? How do we ‘loop’ the notes that are being repeated? Let’s use a For loop:

Programming the VEX Cortex How do we program a note? What will a loop look like?

Programming the VEX Cortex void setup () { for (int i=0; i<2; i++) body } How do we program the entire song? Put all of the For loops consecutive:

Programming the VEX Cortex How do we actually play the song on the Cortex? VEX speaker – plug into SP port in Digital section of Cortex Speaker is available for $9.99 Using some other speaker not recommended – bad sound

Using Switches to Play Music Not only can we program the song into the Uno, but we can set up our own “VEX Keyboard” VEX switches are probably the easiest to access, since your school probably has POE or CIM. (Isn’t that why you’re here?  ) Momentary push-button switches can also be used.

Using Switches to Play Music How do I program the Cortex to play music with switches?

Using Switches to Play Music How do I program the Cortex to play music with switches?

Using Switches to Play Music Project Idea – a full keyboard! File available upon request.