This file contains hidden or 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
int[] countData; | |
int[] countData2; | |
void setup() { | |
size(680, 830); | |
loadData(); | |
} | |
void draw() { |
This file contains hidden or 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
void setup() { | |
size(480, 270); | |
background(255); | |
} | |
void draw() { | |
//change the stroke weight to have a thicker line | |
strokeWeight(25); | |
//use the random function to get a random color for the stroke |
This file contains hidden or 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
//create an array to hold the values you want to graph | |
int[] numbers = {324,562,637,444,692,402,590}; | |
void setup() { | |
size(800,800); | |
background(255); | |
} | |
void draw() { | |
fill(0); |
This file contains hidden or 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
import arb.soundcipher.*; | |
SoundCipher midi = new SoundCipher(this); | |
int beat; | |
//float[] pitches = {60, 64, 66, 67, 62, 71, 69, 61, 65, 63, 68, 70}; | |
float[] pitches; | |
void setup() { | |
//frameRate(2); |
This file contains hidden or 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
import arb.soundcipher.*; | |
SoundCipher midi = new SoundCipher(this); | |
float[] pitches = {60, 64, 66, 67, 62, 71, 69, 61, 65, 63, 68, 70}; | |
void setup() { | |
} |
This file contains hidden or 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
float x, y, x1, y1, x2, y2, x3, y3, x4, y4, x5, y5, x6, y6, x12, y12, | |
x8, y8, x9, y9, x10, y10, m, n, m1, n1, m2, n2, m3, n3, m4, n4, m5, | |
n5, m6, n6, m12, n12, c, d, c1, d1, c2, d2, c3, d3, c4, d4, c5, d5, c6, d6, c7, d7, c8, d8, c9, d9, | |
q, r; | |
float a; | |
boolean saveMe = false; | |
float red = 240; | |
float green = 40; | |
float blue = 40; | |
float theta; |
This file contains hidden or 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
int cell = 35; // Individual cell size | |
int cols, rows; // Total number of columns and rows | |
float valueR = 50.0; | |
float valueG = 50.0; | |
float valueB = 50.0; | |
int count = 0; | |
int squareCount = 0; | |
sqProp[] square = new sqProp[400]; |
This file contains hidden or 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
//GoogleTTS code is adapted from Amnon p5 http://amnonp5.wordpress.com/2011/11/26/text-to-speech/ | |
import controlP5.*; | |
import ddf.minim.*; | |
import ddf.minim.ugens.*; | |
import java.net.*; | |
import java.io.*; | |
//sound using Minim - adapted from reference on site | |
AudioPlayer player; |
This file contains hidden or 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
(* | |
Print image to Pogo printer | |
This Folder Action handler is triggered whenever items are added to the attached folder. | |
The script will send an image to a Pogo printer. | |
Hacked together by Brendan Dawes www.brendandawes.com. | |
*) | |
-- the address of your pogo device |
This file contains hidden or 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
import processing.serial.*; | |
import processing.pdf.*; | |
Serial myPort; | |
//handshake method for serial communication | |
boolean firstContact = false; | |
//shape arrays | |
SquareSpin[] square = new SquareSpin[5000]; | |
CircleSpin[] circle = new CircleSpin[5000]; |
NewerOlder