Skip to content

Instantly share code, notes, and snippets.

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);
}
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);
}
class UTransformHarmonize : public UTransformBase {
public:
list<int> intervals;
bool calcPlayingNotes(CLOCK clock) {
bool changed = upstreamTransform->calcPlayingNotes(clock);
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)
function createNotifications() {
var activities = Activity.findAll({notified: false})
var notifications = activities.map(createNotifications)
notifications = flatten(notifications)
// later => notifications = simplify(notifications)
ERR UWave::start() {
USignal::start();
curSegment = segments.begin();
while( curSegment != segments.end() ) {
if( (*curSegment)->duration > 0)
break;
curSegment ++;
}
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*\/\//)
})
/var/www/rails_app/public folder
/var
/var/www
/var/www/rails_app
/var/www/rails_app/public_foler
[
{
"callbackEvents": false,
"forceStartNotes": true,
"loopLength": 32,
"muted": false,
"offset": -0.603912353515625,
"origin": 7106,
"recorder": "",
"score": [
/**
* @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/