Project 1 - Project 1: Sound Editor due Sunday, October...

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

View Full Document Right Arrow Icon
Project 1: Sound Editor due Sunday, October 31st, 11:59 pm This is an individual project. For this project you will develop a simple sound editing program. Background Course Material Setup Project Specification Submitting Your Project Grading Criteria Background In this project, you will use your knowledge of sound manipulation to create a simple sound editing program. You will use also the requestInteger(message) JES function to implement the menus that ask the user for what he wants to do and get his/her input. You already used this function in Lab6. You will also use the requestNumber(message) JES function to implement the menus that display the message and return a decimal number (such as 2.5). The function above has to be used when the input you want from the user is a decimal number. Course Material Before you start this project, you must understand: Sound Manipulation (Chapter 6 and 7 of the textbook) Setup Remember to make a new directory project1 under the directory cs177 on your Unix account: cd cd cs177 mkdir project1 Download the file under project1 directory. Here is a sound file you can use to test your program: beethoven.wav . Make sure you save it in your project1 directory. Then launch JES and open the program provided to you Project Specification Overview For this project, you have to write a Python program that contains 9 functions . You have to write a function for each of the editing functionality, plus another function, soundEdit() , that interacts with the user and, depending on the editing function that the user wants to do, gets the necessary inputs for that function and calls the appropriate sound editing function. Note: Except where otherwise stated, you do not need to make sure that input from the user is correct. You may assume that all editing actions that the user attempts are possible. The File The file includes a fully commented skeleton code for the functions you will implement. Work on this file. Do not change the file name and the given function names. Hereafter follows the specifications of the functions you have to write. def soundEdit():
Background image of page 1

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

View Full DocumentRight Arrow Icon
soundEdit() function handles the user interface of the sound-editing program. It takes care of all the menus, asks the user for input to each editing function, and validates user input when needed. It basically consists of 8 if statements that gives the user a choice between 1. findMin: finds the minimum sample value in a sound 2. findMax: finds the maximum sample value in a sound 3. findAverage: finds the average of all sample values in a sound 4. flipHalves: flips the beginning and end halves of a sound 5. invertSound: inverts the sign of every sample value in a sound
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/22/2012 for the course CS 177 taught by Professor Staff during the Fall '08 term at Purdue University-West Lafayette.

Page1 / 4

Project 1 - Project 1: Sound Editor due Sunday, October...

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

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