CSE8A_HW8

CSE8A_HW8 - Homework 8: Sound Collage Due: 5:00pm, Friday,...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: Homework 8: Sound Collage Due: 5:00pm, Friday, March 4th Set Up o Open your home directory (double click on your cs8wxx icon; 2 nd icon from the top) and create a new directory in your home directory called hw8 (all lowercase). o Copy the folder bookClasses from your Desktop into the hw8 directory. Right click on bookClasses > Copy > Right click on hw8 > Paste Into Folder. o When you work in Dr. Java be sure you are editing files in the hw8/bookClasses directory. Problems For this assignment you will make a collage of sounds. Create, splice, mix, and alter sounds together to create a unique and interesting sound. Filter Methods Add 4 filter methods to Sound.java (2 are provided in this assignment and you have to come up with 2 of your own). Copy and paste the following two methods to Sound.java: h public void reverse() { Sound orig = new Sound(this.getFileName()); int length = this.getLength(); for ( int targetIndex = 0, sourceIndex = length -1; targetIndex < length && sourceIndex > 0; targetIndex++, sourceIndex-- ) { this.setSampleValueAt(targetIndex, orig.getSampleValueAt(sourceIndex)); this....
View Full Document

This note was uploaded on 08/31/2011 for the course CSE 8a taught by Professor Kube,p during the Fall '08 term at UCSD.

Page1 / 2

CSE8A_HW8 - Homework 8: Sound Collage Due: 5:00pm, Friday,...

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