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 serial | |
import csv | |
import re | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
portPath = "/dev/ttyACM0" # Must match value shown on Arduino IDE | |
baud = 115200 # Must match Arduino baud rate | |
timeout = 5 # Seconds | |
filename = "data.csv" |
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
/** | |
* Resampling algo from http://en.wikipedia.org/wiki/Lanczos_resampling | |
* Adapted by / copyright Evan Raskob <[email protected]>, 2009-2019 | |
* Free to use with attribution to all original authors / MIT License | |
* https://opensource.org/licenses/MIT | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
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
let p5osc = Shape { | |
params = [ S "imgMode" Nothing, -- mirror, left, right, none | |
S "colorMode" Nothing, -- invert, firey, cool | |
F "brightness" (Just 1.0), | |
S "storm" Nothing, -- big, small, tiny, etc... | |
S "gsmode" Nothing --gray scott diffusion modes | |
], | |
cpsStamp = False, | |
C.latency = 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
Experimental, algorithm-aided, genre-misled, live-coded sound and visuals from the future coming to life before your eyes; bleeps, crashes, warts and all. Algorave is punk music of the next generation. |
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
/** | |
* <p>Based on a toxiclibs example, a 2D polygon profile created using | |
* a smoothed triangle shape generatd by a 2D spline curve is being swept | |
* along a 3D spline path and aligned to the path direction using quaternions. | |
* This generates also a triangular mesha along the path that can be exported. | |
* The example demonstrates the usage of the alignment quaternion | |
* in combination with a 4x4 transformation matrix, as well as the use | |
* of the toAxisAngle() method to compute a rotation axis from a quat, | |
* and some manual mesh creation functionality. | |
* </p> |
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
#svg { | |
width:400px; | |
height:400px; | |
background-color: #999; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<svg> |
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
/* | |
arduino_output | |
Demonstrates the control of digital pins of an Arduino board running the | |
StandardFirmata firmware. Clicking the squares toggles the corresponding | |
digital pin of the Arduino. | |
To use: | |
* Using the Arduino software, upload the StandardFirmata example (located | |
in Examples > Firmata > StandardFirmata) to your Arduino board. |
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
size( 640, 480 ); | |
background( 19, 18, 64 ); // R,G,B | |
stroke( 255, 0, 255 ); // purple stroke | |
int startX = 10; | |
int startY = 20; |
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
/** | |
* Simple quiz game. | |
* | |
* by Evan Raskob | |
* UCA CGA, Farnham | |
* | |
* The Arena, 2012. Week 5+ | |
* | |
* Your first task is to add the code to make questions 2 and 3 work. Have a look |
NewerOlder