Skip to content

Instantly share code, notes, and snippets.

@ollpu
ollpu / Arduino.ino
Created January 17, 2015 20:17
Processing > Arduino DMX Protocol
//DMX communication protocol for Processing ---> Arduino
//Made by Roope Salmi
void setup() {
Serial.begin(115200);
}
byte message[3];
@ollpu
ollpu / gist:cf0b077612f9b574bd12
Created November 26, 2014 15:18
Scheduler Demo
scheduler sched = new scheduler("drawSomething");
void setup() {
size(500, 500);
sched.scheduleLoopingTask(1000);
frameRate(2);
}
void draw() {
@ollpu
ollpu / gist:08742c96e82d30f477ce
Created November 13, 2014 16:42
Own waveform creation with minim
/**
* This sketch demonstrates how to create synthesized sound with Minim
* using an AudioOutput and an Oscil. An Oscil is a UGen object,
* one of many different types included with Minim. By using
* the numbers 1 thru 5, you can change the waveform being used
* by the Oscil to make sound. These basic waveforms are the
* basis of much audio synthesis.
*
* For many more examples of UGens included with Minim,
* have a look in the Synthesis folder of the Minim examples.