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
var fluid = require("infusion"), | |
flock = fluid.require("flocking"); | |
flock.init(); | |
flock.midiAmp = function (velocity) { | |
return velocity / 127; | |
}; | |
flock.midiVibrato = function (value) { |
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
var noises = []; | |
for (var i=0; i<10;i++) { | |
var ugenDef = { | |
ugen: "flock.ugen.filter.biquad.bp", | |
freq : (100 * i) + 300, | |
q: 10, | |
source: { | |
ugen: "flock.ugen.whiteNoise" | |
} |
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
<!DOCTYPE html> | |
<head> | |
<title>Test BOPPAD GLITCHING</title> | |
</head> | |
<body> | |
<script src="../node_modules/flocking/dist/flocking-all.js"></script> | |
<script> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>osc.js Web Sockets</title> | |
<meta charset="UTF-8" /> | |
<script src="node_modules/osc/dist/osc-browser.min.js"></script> | |
</head> | |
<body> | |
<script> |
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
// | |
// C4WorkSpace.m | |
// C4 + Accelerometer | |
// [You must add the CoreMotion Framework in order to get this to compile] | |
// Created by Adam Tindale on 2013-02-19. | |
// | |
// Adapted from this example: | |
// http://eencae.wordpress.com/ios-tutorials/coremotion/cmmotionmanager/ | |
#import <CoreMotion/CoreMotion.h> |
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
ampf aaaameta ptchDa { | |
"patcher" : { | |
"fileversion" : 1, | |
"rect" : [ 527.0, 44.0, 852.0, 729.0 ], | |
"bglocked" : 0, | |
"defrect" : [ 527.0, 44.0, 852.0, 729.0 ], | |
"openrect" : [ 0.0, 0.0, 0.0, 169.0 ], | |
"openinpresentation" : 1, | |
"default_fontsize" : 10.0, | |
"default_fontface" : 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
<html> | |
<body> | |
<p> copy and paste these into the console to try communication | |
<p>pubnub.publish({channel:'hello', message:'fjfjfjf'}); | |
<p>pubnub.publish({channel:'hello', message:{'jfjfj':'fjfj'}}); | |
<script src="https://cdn.pubnub.com/sdk/javascript/pubnub.4.3.1.min.js"></script> | |
<script> | |
var pubnub = new PubNub({ | |
subscribeKey: "yours", |
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 UIKit | |
class WorkSpace: C4CanvasController { | |
var circles : [C4Circle]! | |
var timer: C4Timer? | |
var cwidth: Double = 0.0 | |
var cheight: Double = 0.0 | |
override func setup() { |
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 UIKit | |
class WorkSpace: C4CanvasController { | |
var circles : [C4Circle]! | |
override func setup() { | |
circles = [C4Circle]() | |
for var i = 0; i < 10; i++ |