Sound Psycho 100

This is a sound coding experiment in Processing. The inspiration for this experiment is Mob Psycho 100, an animated series by the studio Madhouse. This series uses vibrant and, debatably, trippy colors during its opening and somewhat throughout the episodes. It is a beautiful piece that Madhouse adapted and brought to life.

import ddf.minim.*;
import ddf.minim.analysis.*;

Minim minim;
AudioPlayer song;
BeatDetect beat;

float r;
float g;
float b;

float circleX;
float circleY;
float Mob;

float X;
float Y;

void setup(){
size(720,300);

minim = new Minim(this);

song = minim.loadFile(“Mob Psycho 100 Opening Cover (Instrumental) [YellowExxhy].mp3”, 1024);
song.play();

beat = new BeatDetect();
}

void draw(){
background(255);

// Circle Generator
noStroke();
fill(64,224,208,random(255));
circleX = random(width);
circleY = random(height);
Mob = random(40);
ellipse(circleX,circleY,Mob,Mob);

// LINE MATRIX CODE THINGY IDFK THIS IS JUST A DIVIDER TO BE ORGANIZED!

beat.detect(song.mix);

if (beat.isOnset() ){
X = random(width);
Y = random(height);

strokeWeight(random(2));
stroke(0,0,255);
// Left and Right
for(int H = 0; H <= height; H = H + 100){
line(0,H,X,Y);
line(width,H,X,Y);
}
// Top and Bottom
for(int W = 0; W <= width; W = W + 100){
line(W,0,X,Y);
line(W,height,X,Y);
}

// Left and Right 2
strokeWeight(random(4));
stroke(0,255,255);
for(int H = 0; H <= height; H = H + 100){
line(0,H-10,X,Y);
line(width-10,H-10,X,Y);
}
// Top and Bottom 2
for(int W = 0; W <= width; W = W + 100){
line(W-10,0,X,Y);
line(W-10,height-10,X,Y);
}
}

// Referenced from Jason’s example on “sound”
for(int M = 0; M < song.bufferSize() – 1; M++)
{
fill(255,0,255);
rect(M, 5 + song.left.get(M)*50, M, 50 + song.right.get(M)*50);
}
}

Advertisements
This entry was posted in Time Based and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

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