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
class Ball { | |
PVector position, velocity; | |
float size; | |
color col; | |
int state, collisionCount, collisionMax; | |
float velocityAdjustment = 1; | |
float maxspeed = 5; | |
//constructor with a random velocity |
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
const int audioPins[] = {A0, A1}; //analog in pins for mics | |
const int analogOutPins[] = {3, 5}; //analog out pins for leds | |
int audioValues[] = {512, 512}; //microphone input | |
int currentOutValues[] = {255, 255}; //led output | |
int currentDifferences[] = {0, 0}; //audio difference from the default balance | |
int prevDifferences[] = {0, 0}; //difference from the previous moment for NR | |
const int bottomThreshold = 5; //to what value the led is considered turned off | |
boolean offs[] = {false, false}; //if one led is blown off |
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
import controlP5.*; | |
import java.util.*; | |
ControlP5 cp5; | |
boolean guiToggle; | |
int resolution = 400; //intermediate value for convinience and future conversions | |
float cropFactor = 1; //zoom in the face that OpenCV returns |
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
import oscP5.*; | |
OscP5 oscP5; | |
int found; | |
float mouthHeight; | |
float rotateX, rotateY, rotateZ; | |
float eyeL, eyeR; | |
boolean paused = false; | |
boolean frameTaken = false; | |
int x = 0; |
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
from requests_html import HTMLSession | |
session = HTMLSession() | |
domain = 'https://www.digitalartarchive.at' | |
url = 'https://www.digitalartarchive.at/database/database-info/archive.html?tx_kesearch_pi1%5Bpage%5D=' | |
for i in range(1, 3): | |
i = str(i) |