Skip to content

Instantly share code, notes, and snippets.

import processing.serial.*;
import osteele.processing.SerialRecord.*;
import processing.sound.*;
Serial serialPort;
SerialRecord serialRecord;
SoundFile sound;
void setup() {
size(500, 500);
@Lucyy-eme
Lucyy-eme / gist:20f14882625572948a5b15d310c0ee96
Created December 15, 2022 13:10
Arduino -- Final project
#define FASTLED_ALLOW_INTERRUPTS 0
#include <FastLED.h>
FASTLED_USING_NAMESPACE
#include "SerialRecord.h"
#define pin A1
#define NUM_LEDS 53
#include <Servo.h>
#define DATA_PIN 5
#define CLOCK_PIN 13
/* This is a code example for Arduino, to be used on Recitation 7
You need to have installed SerialRecord and FastLED libraries.
It requires NeoPixel WS2812 at pin 3
Interaction Lab
IMA NYU Shanghai
2022 Fall
*/
#include "SerialRecord.h"
#include <FastLED.h>
@Lucyy-eme
Lucyy-eme / gist:c0dce18dd4d886b18cfa13b28e4aae25
Created November 22, 2022 05:49
Recitation 7 processing
import processing.sound.*;
import processing.serial.*;
import osteele.processing.SerialRecord.*;
FFT fft;
AudioIn in;
int bands = 512;
float[] spectrum = new float[bands];
String[] headlines = {
"IMA end of semester show 2022 @6pm-8pm",
"Friday 11/16 on the 8th floor",
};
PFont f;
float x;
int index = 0;
String[] headlines = {
"IMA end of semester show 2022 @6pm-8pm",
"Friday 11/16 on the 8th floor",
};
PFont f;
float x;
int index = 0;
void setup() {
String[] headlines = {
"IMA end of semester show 2022 @6pm-8pm",
"Friday 11/16 on the 8th floor",
};
PFont f;
float x;
int index = 0;