Prototyping Your Path

We have laid out the step by step of the feedback the app is going to give the user from start to finish. From laying this out we were able to choose which part we want to make a working prototype of and what we want to just make a conceptual prototype of. One of the primary functionalities is playing back audio files to the user, so in Processing Engin showed us a simple, but efficient, piece of code that would play out any audio with the correct formatting, but for now it plays a deranged example of a woman sneezing.

// Learning Processing
// Daniel Shiffman
// http://www.learningprocessing.com

// Example 20-1: Simple sound with video library

import processing.video.*;

Movie movie;

void setup() {
// size(200, 200);
movie = new Movie (this, “Sneeze-female.wav”);
}

void draw() {

background(0);
noLoop();
}

void mousePressed() {
movie.stop();
movie.play();
}

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s