lab2 - CMSC 143: Introduction to Object-Oriented...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CMSC 143: Introduction to Object-Oriented Programming with Robots Lab 2: Scribbler Music Due September 13, 2010 This lab gives you more practice writing expressions and functions and exploring the mathematics behind making music with the scribbler. As we discussed in class, and in the textbook, a musical note has a particular frequency. For example, the sound of 261Hz corresponds to Middle-C. You can increase a note by one octave by doubling its frequency (Tenor-C at 523Hz). Likewise, you can decrease a note by one octave by halving its frequency (Low-C at 131Hz). It’s hard to remember the frequencies for all the different notes, but luckily there are clear mathematical relationships between all the notes. In this lab, we will explore this correspondence in more depth. Learning Objectives Write functions that return values. Utilize parameter passing. Explore the mathematics of music. Lab Report Submit an electronic copy of your program on moodle. It should be named cmsc143 lab2 NAME.py . Your program should have your name, email, and the date at the top of the file as a comment. Scribbler Piano
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/14/2010 for the course CMSC 143 taught by Professor Keitho'hara during the Spring '10 term at Bard College.

Page1 / 2

lab2 - CMSC 143: Introduction to Object-Oriented...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online