{"size": 861, "ext": "js", "max_stars_repo_path": "max/expand.js", "max_stars_repo_name": "kylemcdonald/Siren", "max_stars_repo_stars_event_min_datetime": "2021-08-20T22:23:24.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-20T22:23:24.000Z", "max_issues_repo_path": "max/expand.js", "max_issues_repo_name": "kylemcdonald/Siren", "max_issues_repo_issues_event_min_datetime": "2022-01-20T03:37:38.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-20T03:37:38.000Z", "max_forks_repo_path": "max/expand.js", "max_forks_repo_name": "kylemcdonald/Siren", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 16.5576923077, "max_line_length": 60, "alphanum_fraction": 0.4541231127}
inlets = 1;
outlets = 1;

/*
function par_map(x) {
	if (x == 0) {
		return 0;
	}
	return ((x * 195. / 255.) + 60)|0;
}
*/

function list() {
	var out = new Array();
	
	var i = 0;
	var j = 0;
	while (i < arguments.length) {
		var r = arguments[i];
		var g = arguments[i+1];
		var b = arguments[i+2];
		//var fixture = i / 3;
		if (i < 24) {
			var sf = 0.20;
			//r=g=b=0;
			r*=sf;
			g*=sf;
			b*=sf;
			out[j] = (r);
			out[j+1] = (g);
			out[j+2] = (b);
			j += 3;
		} else {
			//r=g=b=255;
			var br = ((r+g+b)/3)|0;
			var w = br / 2;
			out[j] = 255; // dimmer
			out[j+1] = r;
			out[j+2] = g;
			out[j+3] = b;
			out[j+4] = w; // cool white
			out[j+5] = 0; // open (no strobe)
			out[j+6] = 255-br; // zoom
			out[j+7] = 0; // zoom reset (201-220, others no function)
			out[j+8] = 19; // linear dimmer
			j += 9;
		}
		i += 3;
	}
	
	outlet(0, out);
}