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
function toHex(d) { | |
return ("0"+(Number(d).toString(16))).slice(-2).toUpperCase() | |
} |
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
gistid="209bf8126150f9fb8ca8027c3ac7e69f"; | |
//Query Github with selected gist id | |
$.ajax({ | |
url: 'https://api.github.com/gists/'+gistid, | |
type: 'GET', | |
dataType: 'jsonp' | |
}).success( function(gistdata) { | |
console.log(gistdata.data.files) |
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
updated String file contents via ajax |
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
data=JSON.parse('{"assets":[],"v":"4.1.7","ddd":0,"layers":[{"ddd":0,"ind":0,"ty":4,"nm":"Shape Layer 1","ks":{"o":{"k":100},"r":{"k":0},"p":{"k":[960,540,0]},"a":{"k":[0,0,0]},"s":{"k":[100,100,100]}},"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","closed":true,"ks":{"k":[{"i":{"x":0.34,"y":1},"o":{"x":0.66,"y":0},"n":"0p34_1_0p66_0","t":0,"s":[{"i":[[101,-24],[46.916,-87.635],[-110.845,-34.429],[51,252]],"o":[[-105.259,25.012],[-53,99],[132,41],[-35.754,-176.668]],"v":[[-138,-43],[-367,2],[-152,223],[209,-26]]}],"e":[{"i":[[103.718,-4.435],[46.916,-87.635],[-110.845,-34.429],[-20.551,256.286]],"o":[[-304,13],[-53,99],[132,41],[17,-212]],"v":[[52,-259],[-361,-24],[-64,99],[385,22]]}]},{"i":{"x":0.34,"y":1},"o":{"x":0.66,"y":0},"n":"0p34_1_0p66_0","t":25,"s":[{"i":[[103.718,-4.435],[46.916,-87.635],[-110.845,-34.429],[-20.551,256.286]],"o":[[-304,13],[-53,99],[132,41],[17,-212]],"v":[[52,-259],[-361,-24],[-64,99],[385,22]]}],"e":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-800,-541],[-9 |
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
data=JSON.parse('{"assets":[],"v":"4.1.7","ddd":0,"layers":[{"ddd":0,"ind":0,"ty":4,"nm":"Shape Layer 1","ks":{"o":{"k":100},"r":{"k":0},"p":{"k":[960,540,0]},"a":{"k":[0,0,0]},"s":{"k":[100,100,100]}},"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","closed":true,"ks":{"k":[{"i":{"x":0.34,"y":1},"o":{"x":0.66,"y":0},"n":"0p34_1_0p66_0","t":0,"s":[{"i":[[101,-24],[46.916,-87.635],[-110.845,-34.429],[51,252]],"o":[[-105.259,25.012],[-53,99],[132,41],[-35.754,-176.668]],"v":[[-138,-43],[-367,2],[-152,223],[209,-26]]}],"e":[{"i":[[103.718,-4.435],[46.916,-87.635],[-110.845,-34.429],[-20.551,256.286]],"o":[[-304,13],[-53,99],[132,41],[17,-212]],"v":[[52,-259],[-361,-24],[-64,99],[385,22]]}]},{"i":{"x":0.34,"y":1},"o":{"x":0.66,"y":0},"n":"0p34_1_0p66_0","t":25,"s":[{"i":[[103.718,-4.435],[46.916,-87.635],[-110.845,-34.429],[-20.551,256.286]],"o":[[-304,13],[-53,99],[132,41],[17,-212]],"v":[[52,-259],[-361,-24],[-64,99],[385,22]]}],"e":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-800,-541],[-9 |
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
data=JSON.parse('{"assets":[],"v":"4.1.7","ddd":0,"layers":[{"ddd":0,"ind":0,"ty":4,"nm":"Shape Layer 1","ks":{"o":{"k":100},"r":{"k":0},"p":{"k":[960,540,0]},"a":{"k":[0,0,0]},"s":{"k":[100,100,100]}},"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","closed":true,"ks":{"k":[{"i":{"x":0.34,"y":1},"o":{"x":0.66,"y":0},"n":"0p34_1_0p66_0","t":0,"s":[{"i":[[101,-24],[46.916,-87.635],[-110.845,-34.429],[51,252]],"o":[[-105.259,25.012],[-53,99],[132,41],[-35.754,-176.668]],"v":[[-138,-43],[-367,2],[-152,223],[209,-26]]}],"e":[{"i":[[103.718,-4.435],[46.916,-87.635],[-110.845,-34.429],[-20.551,256.286]],"o":[[-304,13],[-53,99],[132,41],[17,-212]],"v":[[52,-259],[-361,-24],[-64,99],[385,22]]}]},{"i":{"x":0.34,"y":1},"o":{"x":0.66,"y":0},"n":"0p34_1_0p66_0","t":25,"s":[{"i":[[103.718,-4.435],[46.916,-87.635],[-110.845,-34.429],[-20.551,256.286]],"o":[[-304,13],[-53,99],[132,41],[17,-212]],"v":[[52,-259],[-361,-24],[-64,99],[385,22]]}],"e":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-800,-541],[-9 |
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
function onMouseMove(event){ | |
var test=new Path.Circle([0,0],5) | |
test.position=event.point; | |
test.data.velocity=3; | |
test.onFrame=function(event){ |
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
var log = console.log.bind(console); | |
var data, cmd, channel, type, note, velocity; | |
if (navigator.requestMIDIAccess){ | |
navigator.requestMIDIAccess({ | |
sysex: false | |
}).then(onMIDISuccess, onMIDIFailure); | |
} else { | |
alert("No MIDI support in your browser."); | |
} |
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
remotables=[["Mod Wheel",0,127,"Value","Value"], | |
["Pitch Bend Range",0,24,"Value","Value"], | |
["Polyphony",0,32,"Value","Value"], | |
["Release Polyphony",0,32,"Value","Value"], | |
["Key Mode",0,2,"Value","Value"], | |
["Portamento",0,127,"Value","Value"], | |
["Portamento Mode",0,2,"Value","Value"], | |
["Note On Indicator",0,1,"-","Value"], | |
["Note Trigger MIDI",0,1,"Toggle","Value"], | |
["Note Trigger Step Seq",0,1,"Toggle","Value"], |
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
var xOffset=100; | |
var yOffset=100; | |
for(var j=0;j<11;j++){ | |
for(var i=0;i<11;i++){ | |
var t=new PointText(); | |
t.content="0" | |
t.position=new Point(i*20+xOffset,j*20+yOffset) | |
} |
OlderNewer