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 Poly({world, factory, polyphony}) { | |
var output = world.create('UPoly'); | |
output.channels = {}; | |
for (var i = 0; i < polyphony; i++) { | |
var unit = factory(world); | |
output.channels[i] = unit; | |
output.addUnit(unit); | |
} |
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 Poly({world, factory, polyphony}) { | |
var output = world.create('UPoly'); | |
output.channels = {}; | |
for (var i = 0; i < polyphony; i++) { | |
var unit = factory(world); | |
output.channels[i] = unit; | |
output.addUnit(unit); | |
} |
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
class UTransformHarmonize : public UTransformBase { | |
public: | |
list<int> intervals; | |
bool calcPlayingNotes(CLOCK clock) { | |
bool changed = upstreamTransform->calcPlayingNotes(clock); | |
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 glob = require("glob") | |
var fs = require("fs") | |
const all = [] | |
glob.sync(__dirname + "../bundles/**/*.preset").forEach( (path) => { | |
const str = fs.readFileSync(path) | |
try { | |
const json = JSON.parse(str) |
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 createNotifications() { | |
var activities = Activity.findAll({notified: false}) | |
var notifications = activities.map(createNotifications) | |
notifications = flatten(notifications) | |
// later => notifications = simplify(notifications) |
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
ERR UWave::start() { | |
USignal::start(); | |
curSegment = segments.begin(); | |
while( curSegment != segments.end() ) { | |
if( (*curSegment)->duration > 0) | |
break; | |
curSegment ++; | |
} |
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 through = require('through'); | |
var root = __dirname.replace("node_modules/evalify", "") | |
function compile(file, data, callback) { | |
var lines = data.split("\n").filter(function(line) { | |
return ! line.match(/\s*\/\//) | |
}) |
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/www/rails_app/public folder | |
/var | |
/var/www | |
/var/www/rails_app | |
/var/www/rails_app/public_foler |
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
[ | |
{ | |
"callbackEvents": false, | |
"forceStartNotes": true, | |
"loopLength": 32, | |
"muted": false, | |
"offset": -0.603912353515625, | |
"origin": 7106, | |
"recorder": "", | |
"score": [ |
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
/** | |
* @author sole / http://soledadpenades.com | |
* @author mrdoob / http://mrdoob.com | |
* @author Robert Eisele / http://www.xarg.org | |
* @author Philippe / http://philippe.elsass.me | |
* @author Robert Penner / http://www.robertpenner.com/easing_terms_of_use.html | |
* @author Paul Lewis / http://www.aerotwist.com/ | |
* @author lechecacharro | |
* @author Josh Faul / http://jocafa.com/ | |
* @author egraether / http://egraether.com/ |
NewerOlder