-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- public release 1.0
- Loading branch information
ffd8
committed
Aug 30, 2016
0 parents
commit 91924ea
Showing
36 changed files
with
3,895 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/application.macosx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
|
||
float cop; | ||
int j=0; | ||
int audioWaveIndex ; | ||
|
||
int v; | ||
float a ; | ||
|
||
|
||
void aSetup() { // custom setup = runs once | ||
} | ||
|
||
void aDraw() { // custom draw = renders fooorever | ||
|
||
//SETTINGS [change, but don't delete any] | ||
credits = "nils.dobberstein"; // put your name[s] here! | ||
myTextFont = "FreeSans.ttf"; // set font | ||
myTextSize = height*.8; // *NEW* set text size (0 - height) | ||
useLowerCase = false; // *NEW* optionally set true for lowercase | ||
myTextLength = 15; // custom cut length | ||
processType(); // takes care of type for you, turn off if using custom | ||
background(0); // default background | ||
//backgroundFade(30); // very experimental.. sorta fails in 3D | ||
|
||
|
||
a = a +.02; | ||
cop=sin(frameCount *.009); | ||
cop =cop+0.2; | ||
pushMatrix(); // only adjusts translate/scale within matrix | ||
translate(width/2, height/2, -height/2); // suggestion to draw from center out | ||
float superTurn = (maxAudio); | ||
rotateY(cop+superTurn); | ||
translate(0,0,superTurn); | ||
|
||
if (pointPaths != null) { // only draw if points ready | ||
//noFill(); // optional.. | ||
stroke(255); | ||
rotateY(cop); | ||
if (maxAudio<0.1) { | ||
rotateY(superTurn); | ||
} | ||
pushMatrix(); | ||
|
||
for (int k =0; k<map(avgAudio, 0, maxAudio, 0, 10); k++) { //anzahl loop rechtecke | ||
|
||
|
||
int i = 0; | ||
// int transform = (floor(map(avgAudio, 0, maxAudio, 0, height/20))); | ||
// translate(0, 0, (map(avgAudio, 0, maxAudio, 0, height/10))); | ||
translate(0,0,maxAudio); | ||
beginShape(); | ||
for (int j=0; j < pointPaths[i].length; j++) { | ||
int audioWaveIndex = floor(map(j, 0, pointPaths[i].length, 0, in.bufferSize())); //new | ||
float audioWave = in.left.get(audioWaveIndex)*ampWave; //new | ||
stroke(255); | ||
rect(pointPaths[i][j].x+(map(avgAudio, 0, maxAudio, 0, height/10)+audioWave), pointPaths[i][j].y+(map(avgAudio, 0, maxAudio, 0, height/20)+audioWave), 3+audioWave*2, 3+audioWave*2); | ||
|
||
|
||
|
||
noFill(); | ||
} | ||
endShape(); | ||
} | ||
popMatrix(); | ||
for (int k =0; k<map(avgAudio, 0, maxAudio, 0, 3); k++) { | ||
for (int i = 1; i < pointPaths.length; i++) { | ||
|
||
int transform = (floor(map(avgAudio, 0, maxAudio, 0, height/10))); | ||
translate(0, 0, transform); | ||
|
||
//xstroke(map(avgAudio, 0, maxAudio, 20, 255)+audioWave,audioWave,map(avgAudio, 4, maxAudio, 255, 0)+avgAudio); | ||
xstroke(map(avgAudio, 0, maxAudio, 20, 255),0,map(avgAudio, 4, maxAudio, 255, 0)); | ||
xbeginShape(); | ||
for (int j=0; j < pointPaths[i].length; j++) { | ||
|
||
// stroke(255,0,255); | ||
if(map(easeAudio, 0, maxAudio, 0, 5)>= .1){ | ||
int audioWaveIndex = floor(map(j, 0, pointPaths[i].length, 0, in.bufferSize())); | ||
float audioWave = in.left.get(audioWaveIndex)*ampWave; | ||
|
||
xvertex(pointPaths[i][j].x+(map(avgAudio, 0, maxAudio, 0, height/20)), pointPaths[i][j].y); | ||
xvertex(pointPaths[i][(j+1)%pointPaths[i].length].x,pointPaths[i][(j+1)%pointPaths[i].length].y); | ||
//xline(pointPaths[i][j].x+(map(avgAudio, 0, maxAudio, 0, height/20)), pointPaths[i][j].y,pointPaths[i][(j+1)%pointPaths[i].length].x, pointPaths[i][(j+1)%pointPaths[i].length].y); | ||
noFill(); | ||
|
||
} | ||
|
||
xendShape(); | ||
} | ||
} | ||
} | ||
} | ||
|
||
popMatrix(); | ||
} | ||
|
||
/*---- YOUR CUSTOM CODE ABOVE ------------------------*/ | ||
/***** DON'T EDIT BELOW *******************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/*---- YOUR CUSTOM CODE BELOW --------------------------*/ | ||
/*---- PUT OWN VARIABLES JUST BEFORE customSetup()------*/ | ||
// name vars starting with your letter to avoid duplicate variables! | ||
// float aXpos = 0; | ||
// int aSpeed = 0; | ||
|
||
void bSetup() { // custom setup = runs once | ||
} | ||
|
||
void bDraw() { // custom draw = renders fooorever | ||
|
||
//SETTINGS [change, but don't delete any] | ||
credits = "ted.davis"; // put your name[s] here! | ||
myTextFont = "FreeSans.ttf"; // set font | ||
myTextSize = height*.6; // *NEW* set text size (0 - height) | ||
useLowerCase = false; // *NEW* optionally set true for lowercase | ||
myTextLength = 15; // custom cut length | ||
processType(); // takes care of type for you, turn off if using custom | ||
background(0); // default background | ||
|
||
translate(width*.5, height*.5); // suggestion to draw from center out | ||
noFill(); | ||
if (pointPaths != null) { // draw if points ready | ||
pushMatrix(); | ||
popMatrix(); | ||
rotateZ(radians(frameCount*.4)); | ||
|
||
if(sin(frameCount*.01) < .5){ | ||
xstroke(150, 150, 0); | ||
for (int i = 0; i < pointPaths.length; i++) { | ||
pushMatrix(); | ||
translate(0, 0, map(sin(frameCount*.01), -1, 1, -height*.5, height)); | ||
xbeginShape(); // just demo shape below! | ||
for (int j=0; j < pointPaths[i].length; j++) { | ||
xvertex(pointPaths[i][j].x, pointPaths[i][j].y); | ||
} | ||
xendShape(); | ||
popMatrix(); | ||
} | ||
} | ||
int audioLoop = floor(map(avgAudio, 0, 50, 1, 360)); | ||
|
||
for (int k=0; k < audioLoop; k+=2) { | ||
for (int i = 0; i < pointPaths.length; i++) { | ||
pushMatrix(); | ||
translate(0, 0, map(sin(frameCount*.01), -1, 1, -height*.5, height)); | ||
scale(map(k, 0, 360, 1, 0)); | ||
rotateZ(radians(map(k, 0, 360, 0, 180))); | ||
noFill(); | ||
stroke(map(k, 0, audioLoop, 255, 0)); | ||
beginShape(); // just demo shape below! | ||
|
||
for (int j=0; j < pointPaths[i].length; j++) { | ||
int audioWaveIndex = floor(map(j*k, 0, pointPaths[i].length*k, 0, in.bufferSize())); | ||
float audioWave = in.left.get(audioWaveIndex)*ampWave/2; | ||
int audioFreqIndex = floor(map(j, 0, pointPaths[i].length, 0, fft.avgSize())); | ||
float audioFreq = fft.getAvg(audioFreqIndex)*amp; | ||
vertex(pointPaths[i][j].x, pointPaths[i][j].y, -audioFreq*k*.2); | ||
} // j | ||
endShape(); | ||
|
||
if(sin(frameCount*.01) > .7 && k > audioLoop-2){ | ||
xstroke(150, 150, 0); | ||
xbeginShape(); | ||
int rsel = frameCount%(pointPaths[i].length-6);//floor(random(pointPaths[i].length-4)); | ||
xvertex(pointPaths[i][rsel].x, pointPaths[i][rsel].y, -k*.2); | ||
xvertex(pointPaths[i][rsel+1].x, pointPaths[i][rsel+1].y, -k*.2); | ||
xvertex(pointPaths[i][rsel+2].x, pointPaths[i][rsel+2].y, -k*.2); | ||
xvertex(pointPaths[i][rsel+3].x, pointPaths[i][rsel+3].y, -k*.2); | ||
xvertex(pointPaths[i][rsel+4].x, pointPaths[i][rsel+4].y, -k*.2); | ||
xendShape(); | ||
} | ||
|
||
popMatrix(); | ||
} // k | ||
} // i | ||
} // if pointsPath | ||
} // draw | ||
|
||
/*---- YOUR CUSTOM CODE ABOVE ------------------------*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
/*---- YOUR CUSTOM CODE BELOW --------------------------*/ | ||
/*---- PUT OWN VARIABLES JUST BEFORE customSetup()------*/ | ||
// name vars starting with your letter to avoid duplicate variables! | ||
// float aXpos = 0; | ||
// int aSpeed = 0; | ||
|
||
|
||
float cbass; | ||
float cmid; | ||
float chigh; | ||
int czoom = 200; | ||
boolean czoomdir = true; | ||
|
||
void cSetup() { // custom setup = runs once | ||
} | ||
|
||
void cDraw() { // custom draw = renders fooorever | ||
|
||
//SETTINGS [change, but don't delete any] | ||
credits = "Linda.Walter + Madelene.Imhof"; // put your name[s] here! | ||
myTextFont = "FreeSans.ttf"; // ie. "apple_ii.ttf"; | ||
myTextSize = height*.75; // <- custom size | ||
myTextLength = 15; // <- custom length for cuts | ||
processType(); // <- function below (comment out if you prefer custom) | ||
background(0); // <- up to you if you want a background! | ||
//backgroundFade(20); // prefer fade? | ||
|
||
pushMatrix(); // only adjusts translate/scale within matrix | ||
translate(width/2, height/2); // suggestion to draw from center out | ||
scale(.65); // <- custom scale of letters | ||
|
||
if (pointPaths != null) { // only draw if points ready | ||
noFill(); // optional.. | ||
//stroke(255); // optional... | ||
if (czoom == 500) { | ||
czoomdir = false; | ||
} else if (czoom == 200) { | ||
czoomdir = true; | ||
} | ||
|
||
if (czoomdir == true) { | ||
czoom += 2.5; | ||
} else { | ||
czoom -= 2.5; | ||
} | ||
|
||
for (int i = 0; i < pointPaths.length; i++) { | ||
beginShape(); | ||
for (int j=0; j < pointPaths[i].length; j++) { | ||
|
||
int audioWaveIndex = floor(map(j, 0, pointPaths[i].length, 0, in.bufferSize())); | ||
float audioWave = in.left.get(audioWaveIndex)*ampWave; | ||
|
||
//ellipse(pointPaths[i][j].x+audioWave, pointPaths[i][j].y+audioWave, 10, 10); // try other shapes | ||
// [i] refers to which character, [j] refers to which point in that character | ||
|
||
cbass = fft.calcAvg(20, 400)*amp; // fft.calcAvg(minFreq, maxFreq) | ||
cmid = fft.calcAvg(400, 3000)*amp; | ||
chigh = fft.calcAvg(3000, 10000)*amp; | ||
|
||
pushMatrix(); | ||
|
||
//C Laser | ||
|
||
if (j%3==0) { | ||
//stroke( 255); | ||
rotateY(radians(frameCount*0.3)); | ||
//rect(pointPaths[i][j].x, pointPaths[i][j].y, cbass/30+5, cbass/30+5); | ||
xstroke( 100, 0, 200); | ||
xrect(pointPaths[i][j].x, pointPaths[i][j].y, cbass/2+5, cbass/2+5); | ||
} | ||
|
||
//gewuusel 1 | ||
noFill(); | ||
stroke(random(255), 80); | ||
//float cSizeXw = map(pointPaths[i][j].x, 0, 800, 0, czoom); | ||
//float cSizeYw = map(pointPaths[i][j].y, 0, 800, 0, czoom); | ||
rotateX(radians(frameCount*audioWave/chigh/2)); | ||
rect(pointPaths[i][j].x*3, pointPaths[i][j].y*3, 5, chigh/80); | ||
//rect(cSizeXw*5, cSizeYw*5, 5, chigh/80); | ||
rectMode(CENTER); | ||
|
||
popMatrix(); | ||
|
||
|
||
|
||
pushMatrix(); | ||
|
||
|
||
if (j%2==0) { | ||
//Grosses C Punkte | ||
noFill(); | ||
stroke(random(255), 85); | ||
float cSizeXr = map(pointPaths[i][j].x, 0, 800, 0, easeAudio*2+1000); | ||
float cSizeYr = map(pointPaths[i][j].y, 0, 800, 0, easeAudio*2+1000); | ||
ellipse(cSizeXr, cSizeYr, 10, 10); | ||
// rotateY(radians(frameCount*0.1); | ||
} else { | ||
//czoom C | ||
noFill(); | ||
stroke(random(255), 75); | ||
float cSizeXg = map(pointPaths[i][j].x, 0, 800, 0, czoom); | ||
float cSizeYg = map(pointPaths[i][j].y, 0, 800, 0, czoom); | ||
rect(cSizeXg+audioWave/2, cSizeYg, czoom/50, czoom/50); | ||
} | ||
|
||
|
||
|
||
//C bewegung1 | ||
stroke(random(250)); | ||
rotateX(radians(frameCount*0.5)); | ||
rect(pointPaths[i][j].x*1.5, pointPaths[i][j].y*1.5+audioWave/2, random(5), random(20)); | ||
|
||
//C bewegung 2 | ||
stroke(random(250)); | ||
rotateZ(radians(frameCount*4.5)); | ||
rotateY(radians(frameCount*1)); | ||
rect(pointPaths[i][j].x*2, pointPaths[i][j].y*2+audioWave/2, 5, 5); | ||
|
||
|
||
|
||
|
||
popMatrix(); | ||
|
||
|
||
|
||
//line(pointPaths[i][j].x, pointPaths[i][j].y+audioWave, random(5), random(20)); | ||
//line(pointPaths[i][j].x+audioWave, pointPaths[i][j].y, random(5), random(20)); | ||
} | ||
|
||
endShape(); | ||
} | ||
} | ||
|
||
popMatrix(); | ||
} | ||
|
||
|
||
/*---- YOUR CUSTOM CODE ABOVE ------------------------*/ | ||
/***** DON'T EDIT BELOW *******************************/ |
Oops, something went wrong.