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 baboon = require("baboon-image") | |
var lena = require('lena') | |
var savePixels = require("save-pixels") | |
var cwise = require('cwise') | |
var ops = require('ndarray-ops') | |
var shift = cwise({ | |
args: ['array', 'array', {offset: [-100, 0], array: 0}], | |
body: function(a, b, c){ | |
a = c |
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 baboon = require("baboon-image") | |
var lena = require('lena') | |
var savePixels = require("save-pixels") | |
var cwise = require('cwise') | |
var ops = require('ndarray-ops') | |
var shift = cwise({ | |
args: ['array', {offset: [-100, 0], array: 0}], | |
body: function(a, b){ | |
a = b |
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
setTimeout(function(){require('cheatcode') | |
compress = master.createDynamicsCompressor() | |
compress.threshold.value = -30 | |
compress.reduction.value = -20 | |
synth.disconnect() | |
synth.connect(compress) | |
compress.connect(master.destination) | |
timer = sync(72, master.sampleRate) |
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
setTimeout(function(){// this is my 666th session using this live code thing I made | |
// I have previously run sessions as long as three days | |
// the most live code updates performed during one session is 455 | |
// for this special occassion I am going to cheat | |
require('cheatcode') | |
synth.connect(master.destination) | |
// that is not the only cheat | |
// really, that isn't a cheat at all | |
// cuz i wrote all the cheatcode | |
// what i am about to do is cheat |
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
master = new webkitAudioContext | |
jsynth = require('jsynth') | |
nvelope = require('jmod') | |
sync = require('jsynth-sync') | |
oz = require('oscillators') | |
jdelay = require('jdelay') | |
sine = oz.sine | |
saw = oz.saw | |
sr = master.sampleRate | |
bf = 444 |
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
// twitter.com/johnnyscript | |
// soundcloud.com/johnnyscript | |
// soundcloud.com/folkstack | |
master = new webkitAudioContext | |
jsynth = require('jsynth') | |
nvelope = require('jmod') | |
sync = require('jsynth-sync') | |
oz = require('oscillators') | |
jdelay = require('jdelay') |
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
require('cheatcode') | |
var x = 2 | |
ttt = false | |
specialX = function(t){ | |
if(t > 12 * x) x+=2 | |
if(!ttt) ttt = t | |
// t -= ttt || 0 | |
t *= 72 / 60 / 2 | |
t = t * (5) % 12 % t | |
var a = amod(.35, .15, t, 3) |
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
require('cheatcode') | |
var x = 2 | |
specialX = function(t){ | |
if(t > 6 * x) x+=2 | |
t *= 72 / 60 / x | |
t = t * (8 + x) % 12 + x % t | |
var a = amod(.25, .125, t, 1/6) | |
return 0 | |
+ oz.sine(t, 120 + oz.triangle(t, amod(0, .1, t, 1/2) * oz.triangle(t, 1/2))) * a | |
+ oz.sine(t, 360 + (amod(0, .1, t, 1/3) * oz.triangle(t, 1/3))) * a |
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
require('cheatcode') | |
var x = 2 | |
specialX = function(t){ | |
if(t > 12 * x) x+=2 | |
t *= 72 / 60 / 2 / x | |
t += t * (8 + x) % 16 + x % t | |
var a = amod(.25, .125, t, 1/6) | |
return 0 | |
+ oz.sine(t, 120 + oz.triangle(t, amod(0, .1, t, 1/2) * oz.triangle(t, 1/2))) * a | |
+ oz.sine(t, 360 + (amod(0, .1, t, 1/3) * oz.triangle(t, 1/3))) * a |
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
require('cheatcode') | |
specialX = function(t){ | |
t *= 72 / 60 / 2 / 2 | |
t = t * 10 % 12 % t | |
var a = amod(.25, .125, t, 1/6) | |
return 0 | |
+ oz.sine(t, 120 + oz.triangle(t, amod(0, .1, t, 1/2) * oz.triangle(t, 2))) * a | |
+ oz.sine(t, 360 + (amod(0, .1, t, 1/3) * oz.triangle(t, 3))) * a | |
} |