Agenda & Assignment 11, March 24

CSC 101/IMM 120

Spring 2009

Summary of Class Activities:

The focus today is on using existing information resources to learn some new thing on your own. We do this with:

  1. Mouse events.
  2. Playing and generating sound.
  3. Loading and saving files of information.

Mouse Events: Load "Examples/Basics/Input/MouseFunctions

Count the number of methods. These define what happens for the different mouse events. Are these all the events that are possible? Look in the reference guile for more.

Sound: You will need to make sure you have the most recent version of Processing. Its not clear the lab machines support this version, so here goes. We may have to download it to the desktop, or your flash drive.

We will be using three projects from the examples. Open them and then save-as them to the desktop.

LoadFile

  • Things to look at:
    • Note the "import" method at the top. Use the reference page to understand what this does.
    • Where do the "AudioPlayer and "Minim" objects comes from.
    • What is the output that is being generated.

GetMetaData

"Meta data" is information that is imbedded in the file for analysis purposes (such as search). There are a lot of standards issues with meta data.

RecordLineIn

Note how it uses keyboard and typography functions to facilitate recording.

HOMEWORK

Reading: (Due March 31) Read the manual for the "Minim" library. You can find it at the Processing site under reference/libraries. Or you can go to it directly at: http://code.compartmental.net/tools/minim/ We played in class with loading and recording sound files, but what else can you do? REALLY dig through the documentation and the Examples/Libraries/Minim resources to generate ideas?

Programming Assignment: (Due Tuesday, March 31)

Two parts:

1) REMIX from at least one example in the Minim (sound) library. Replace the soundfiles provided with your own. You will have to place your file in the "data" folder for the project. If you don't have an mp3 handy then you will have to create one in Garage Band or Audacity. Or just use a different file format. Part of the purpose of this exercise is for you to think about file formats. How can you incorporate mouse control.

2) WORK ON YOUR PROCESSING PROJECT

Journal Assignment: (Due Tuesday, March 31) So what all CAN you do with sound in Processing? What are the classes of objects that have been created for you and what can they do. (Yes, this is a very open ended question, and it will come back to haunt you on the final. Answer it now while you have time or try to find the answer while you are sleep-deprived during finals week.)