{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# lab2 - CMSC 143 Introduction to Object-Oriented Programming...

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

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.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 2

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

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

View Full Document
Ask a homework question - tutors are online