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
### Keybase proof | |
I hereby claim: | |
* I am mmckegg on github. | |
* I am mmckegg (https://keybase.io/mmckegg) on keybase. | |
* I have a public key whose fingerprint is 3D78 1FBE 44A0 7704 4C88 FE38 4100 3FA0 D8A3 AA97 | |
To claim this, I am signing this object: |
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 ArrayGrid = require('array-grid') | |
var fs = require('fs') | |
var map = { | |
"Floating.json": [ | |
{ "from": "Meowra-Floating A.json", | |
"chunks": { | |
"Spit on a stranger": [0,0, 3,3, "A"], | |
"Crunk Bass": [2,4, 3,6, "C"], | |
"Overdrum": [6,0, 7,3, "B"], |
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 fs = require('fs') | |
var source = '/Users/matt/Documents/Loop Drop' | |
var output = '/Users/matt/Projects/Destroy With Science/Drop' | |
exportSetup('DWS-Time Travellers Die') | |
function exportSetup(name){ | |
var data = JSON.parse(fs.readFileSync(source + '/setups/' + name + '.json')) | |
data.chunks.forEach(function(chunk){ |
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
function monitor(node){ | |
var j = node.context.createScriptProcessor(4096, 1, 1) | |
j.onaudioprocess = function(e){ | |
console.log(e.inputBuffer.getChannelData(0)[0]) | |
} | |
node.connect(j) | |
j.connect(node.context.destination) | |
} |
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
// see https://msdn.microsoft.com/en-gb/goglobal/bb895996.aspx | |
var exec = require('child_process').exec | |
exec('reg query "HKEY_CURRENT_USER\\Keyboard Layout\\Preload"', {encoding: 'utf8'}, function(err, result) { | |
if (result) { | |
var match = result.match(/\s1\s+REG_SZ\s+0000([A-F0-9]+)/i) | |
if (match) { | |
console.log(match[1]) | |
} | |
} |
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 Event = require('geval') | |
var Observ = require('observ') | |
var event = Event(function(broadcast) { | |
var releases = [] | |
state.items(rebind) | |
function handle (event) { | |
if (event.event === 'start') { | |
broadcast() | |
} |
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 ArrayGrid = require('array-grid') | |
var deepEqual = require('deep-equal') | |
var unwrap = require('./unwrap') | |
module.exports = createLoop | |
function createLoop (frames, startTime, loopLength) { | |
if (frames.length) { | |
var shape = frames[frames.length - 1].value.shape | |
var length = shape[0] * shape[1] |
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
module.exports = bindWatch | |
function bindWatch (obs, handler) { | |
if (typeof handler === 'function') { | |
return obs(handler.bind(obs)) | |
} else if (handler instanceof Object) { | |
var removeListeners = Object.keys(handler).map(watchKey, { | |
obs: obs, | |
handlers: handler | |
}) |
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
,\s*\n+(\s*\/\/.*\n)*\s*[\}\)\]] |
OlderNewer