Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

/*
Code Development Team
DIGF 2005 - Atelier II
Professor Nick Puckett
Tuesday January 23, 2018
NANO COMMUNICATION CODE
This code allows Nanos to read information from the serial port sent
from the control panel, and display corresponding images/animations on
the OLEDs.
@TRNT7
TRNT7 / Album_Pixelated_w waveform
Created October 26, 2017 16:33
Both using Album_pixelation but have different interactions
import ddf.minim.*;
PImage album;
float tracks;
Minim minim;
AudioPlayer uno;
void setup() {
size(510,510);
album = loadImage("Blond.jpg"); // load the image, but make sure the image is 300 x 300, fix the resolution using Photoshops 'script' function
var positions =[];
var Hello = {
you: "good",
weather: "today?",
status: undefined
};
function setup() {
createCanvas(windowWidth, windowHeight);
import netP5.*;
import oscP5.*;
OscP5 oscP5;
NetAddress destination;
int bgcolour;
ArrayList<OscMessage> positions = new ArrayList <OscMessage>();
void setup() {
fullScreen();
import ddf.minim.*;
import ddf.minim.ugens.*;
import netP5.*;
import oscP5.*;
OscP5 osc;
Minim minim;
AudioOutput out;
Oscil wave;
import netP5.*;
import oscP5.*;
OscP5 osc;
float xval = 0;
float yval = 0;
float ellsize = 30.0;
void setup(){
@TRNT7
TRNT7 / Mad Samurai Beat Machine
Created September 28, 2017 01:18
This for the Final Prototype for the Atelier class. Basically it's trigger with a split ground wire and when the circuit is complete it allows the track in the code to play.
/*
Mad Samurai Beat Machine
Group members: Tristan Santos, Harit Lad, William Selviz
DIGF-2004-001
This is the Processing code that talks to Arduino via Arduino Firmata.
The code uses two libraries, Minim and Arduino Frimata, and allows us to use the Arduino
as an input and the laptop (Processing) as a output.
int pad0 = 2;
int pad1 = 3;
int pad2 = 4;
int pad3 = 5;
int pad4 = 6;
void setup() {
Serial.begin (9600);
pinMode(pad0, INPUT);
pinMode(pad1, INPUT);