Resonant Chamber

I came across this project on ArchDaily today. It is an interactive interior envelope that employs acoustic research that a firm in Ann Arbor, Michigan. “The aim of rvtr is to develop a soundsphere able to adjust its properties in response to changing sonic conditions, altering the sound of a space during performance and creating an instrument at the scale of architecture, flexible enough that it might be capable of being played.” http://www.archdaily.com/227233/resonant-chamber-rvtr/

Arduino Tutorials

Hello everyone,

I was running through some tutorials on youtube and I came across this series of tutorials for the Arduino, so I figured I’d share them in case anyone was interested. The link the the first tutorial of many is

http://www.youtube.com/watch?v=fCxzA9_kg6s&feature=endscreen&NR=1 .

He starts with a very basic introduction and builds into more advanced work. It may or may not help you to look at these for the final project, but maybe they can become useful for future projects. I have been amazed at the amount you can do with such a simple device, and it is something I want to play around with in the future as a hobby. For anyone in the same boat, these are some easy tutorials.

Best,
Randy

Assignment 4

For assignment 4, using parsed data from an xml, we could draw the traingles. I defined in a custom class the random sizes as well as a range of colors at which the stroke and fill of the triangles could be. I made a new XML file with extra data sets and called for it in the code. It creates a rather cool visual, similar to something you might see in a computer generated desktop background. I want to work on making these triangles rotate and float away upon clicking, but have had some issues trying to figure out how to do that. I will have to mess around with it some more.
The pictures below are what I have so far:

Code:

Assignment 4: Mouse interactivity

I modified the base in class program, with some help from others as I got caught up on the language and programing a few times, to meet what the TODO list said to do. In the actual assignment itself I added another layer of parsing which gave me the ability to generate different sized triangles. I then used this to create another series of random ranged triangles based on the points gather from the new information. I then made it so when a person clicks the left mouse button, anywhere on the screen, it would run the program and generate the triangles, and when someone right clicks the program restarts and clears the data.

After finishing the input side I began to mess around with the class function and what I could do to it. I found it boring that the shapes only went to one side of the screen and added some additional parameters allowing them to move in all directions. I added another set of parameters after that allowing me to generate random colors for each triangle, this one required some help from others as at first mine were only grey scaled. Lastly I moved on to changing the update me function to allow and change these results each time the program was called. The final product can be seen in the slide show below going from start, a series of left clicks, and finally a right click.

This slideshow requires JavaScript.

Assignment 3.5: Interactive XML

I managed to add the ability for the mouse to interact with the boxes, by changing their color, but it still isn’t tied to their location. The left click turns the boxes white while the right click turns them into a dark grey. I tried to add a function that made it detect where the mouse was, and it did, so that if it was pressing the range it would only change that box. That only worked on a single point and didn’t even change the box it was on. If anyone has any suggestions or advice as to what might be wrong with it in terms of selecting a box that would be helpful.

This slideshow requires JavaScript.

Cool Visualization

Hey guys,

I ran across this project and really like its functionality. I’m trying to mess with the source code to develop something similar myself but maybe with different shapes and reactions. We will see how it goes. Anyway its a really cool simple idea that I could see growing and developing into something interesting. As it stands now it functions very well and is fun to play with. I keep wanting to combine applets like this with music to create a music visualization that is possible interactive in some way. I will try to embed this applet, hope it works, so you guys can see it. Otherwise just copy the source code into processing and it will run. All credits to the author of the code, Daniel Winkler.

If this embed doesn’t work, just see this link here http://www.openprocessing.org/visuals/?visualID=3148

Source Code:

// 2009 Daniel Winkler http://www.phyloa.com

Particle[] parts = new Particle[300];
PVector O = new PVector();

void setup()
{
size( 800, 600, P3D );
frameRate( 30 );
for( int i = 0; i < parts.length; i++ )
{
parts[i] = new Particle();
}
noStroke();
smooth();
fill( 30, 200, 255 );
}

void draw()
{
O.set( mouseX, mouseY, -500 );
background( 0 );
lights();
for( int i = 0; i < parts.length; i++ )
{
parts[i].update();
}
}

int size = 7;

public class Particle
{
PVector loc = new PVector( random( 0, width ), random( 0, height ), random( -300, -700 ) );
PVector speed = new PVector();

public Particle()
{

}

public void update()
{
if( mousePressed )
{
PVector dir = new PVector( mouseX, mouseY, -500 );
dir.sub( loc );
dir.normalize();
speed.add( dir );
}
else
{
speed.mult( .9 );
}
loc.add( speed );
pushMatrix();
translate( loc.x, loc.y, loc.z );
rotateToFace( loc );

beginShape( QUADS );
vertex( -size, -size, 0 );
vertex( size, -size, 0 );
vertex( size, size, 0 );
vertex( -size, size, 0 );
endShape();
popMatrix();
}
}

// O is your object's position
// P is the position of the object to face
// U is the nominal "up" vector (typically Vector3.Y)
// Note: this does not work when O is straight below or straight above P
PVector U = new PVector( 0, 1, 0 );
void rotateToFace( PVector P )
{
PVector D = new PVector( );
D.set( O );
D.sub( P );
PVector Right = U.cross( D );
Right.normalize();
PVector Backwards = Right.cross( U );
Backwards.normalize();
PVector Up = Backwards.cross( Right );
applyMatrix(Right.x, Right.y, Right.z, 0, Up.x, Up.y, Up.z, 0, Backwards.x, Backwards.y, Backwards.z, 0, 0, 0, 0, 1);
}

Processing, Java, and Sound. Experimental Song Maker

I found this to be pretty interesting.

The guy seems to have used processing and java to create visuals which are interactive and can be created in different ways and sizes. Based on the interactive forms, there is a sound that loops. It seems the bigger he makes the circles, the longer it takes for the sound to loop. It allows you to make electronic music (experimental) using a simple function. This is pretty cool. I’d even consider doing something like this for finals. Not sure If I can achieve it with what little scripting I know, but it would be cool to try. The visuals themselves are just cool. Check out the video, and pictures. He also has a website

http://www.dominofactory.net/works/Overbug/Overbug.html

Overbug_Live_at_Argentina from dominofactory on Vimeo.