(not so much the technical parts of the language)
ART + JS
// http://arduino.cc/en/Reference/Tone | |
void setup() { | |
// iterate over the notes of the melody: | |
} | |
void loop() { | |
tone(8, 2000); | |
} |
==> ./autogen.sh | |
You should use the 'AC_CONFIG_HEADERS' macro instead. | |
/usr/local/Cellar/automake/1.13.1/share/aclocal-1.13/obsolete-err.m4:14: AM_CONFIG_HEADER is expanded from... | |
configure.ac:25: the top level | |
autom4te: /usr/bin/m4 failed with exit status: 1 | |
aclocal: error: echo failed with exit status: 1 | |
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting |
libusb -> ./autogen.sh | |
glibtoolize: putting auxiliary files in `.'. | |
glibtoolize: copying file `./ltmain.sh' | |
glibtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. | |
glibtoolize: copying file `m4/libtool.m4' | |
glibtoolize: copying file `m4/ltoptions.m4' | |
glibtoolize: copying file `m4/ltsugar.m4' | |
glibtoolize: copying file `m4/ltversion.m4' | |
glibtoolize: copying file `m4/lt~obsolete.m4' | |
configure.ac:34: error: 'AM_CONFIG_HEADER': this macro is obsolete. |
s1 = get_synth(35); | |
s2 = get_synth(35.2); | |
function get_synth(pitch){ | |
nodes={}; | |
nodes.source = myAudioContext.createOscillator(); | |
nodes.source.type=3; | |
nodes.filter = myAudioContext.createBiquadFilter(); | |
nodes.volume = myAudioContext.createGainNode(); | |
nodes.filter.type=0; //0 is a low pass filter |
$(document).ready(function(){ | |
$(".start").css("width","100%"); | |
$(".start").css("height","100px"); | |
$(".start").css("background-color","#A6D1FF"); | |
$(".start").css("cursor","pointer"); | |
var playing = false; | |
try{ |
<!DOCCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset=utf-8> | |
<meta name="viewport" content="width=620"> | |
<title>Embedly Drag and Drop</title> | |
<script src="js/jquery.min.js"></script> | |
<script src="js/jquery.embedly-3.1.1.min.js"></script> | |
</head> |
//from http://www.codeproject.com/Articles/317974/KinectDepthSmoothing | |
function smoothDepth(arr){ | |
var res = createArray(width,height); | |
for(var i=2; i< width-2; i++){ | |
for(var j=2; j < height-2; j++){ | |
if(arr[i][j]===0){ | |
var innerBandCount = 0; | |
var outerBandCount = 0; | |
var filterCollection = []; |
Installing the module, this comes up, but it still installs fine | |
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] | |
CXX(target) Release/obj.target/kinect/src/kinect.o | |
../src/kinect.cc:1:1: warning: "BUILDING_NODE_EXTENSION" redefined | |
<command-line>: warning: this is the location of the previous definition | |
SOLINK_MODULE(target) Release/kinect.node | |
ld: warning: in /usr/local/lib/libfreenect.dylib, file was built for unsupported file format which is not the architecture being linked (i386) | |
SOLINK_MODULE(target) Release/kinect.node: Finished |
if (Serial.available() > 0) { | |
// get incoming byte: | |
byteRead = Serial.read(); | |
/*Listen for a comma which equals byte code # 44 */ | |
if(byteRead==44){ | |
data[counter] = String(serialDataIn); | |
serialDataIn = String(""); | |
counter = counter + 1; | |
} | |
else if(byteRead == 59){ |