Skip to content

Instantly share code, notes, and snippets.

@hanshuebner
hanshuebner / qdiff.lisp
Created September 27, 2011 13:04
Diff checked-out quicklisp project against dist version
;;;; qdiff.lisp
(defpackage #:qdiff
(:use #:cl)
(:shadowing-import-from #:ql-dist
#:name
#:release
#:ensure-local-archive-file
#:base-directory
#:prefix)
@hanshuebner
hanshuebner / plist-parser.js
Created June 1, 2011 05:44
plist parser written in node.js
var plistParser = require("../lib/sax").parser(false, {lowercasetags:true, trim:true}),
sys = require("sys"),
fs = require("fs");
function entity (str) {
return str.replace('"', '"');
}
plistParser.getInteger = function (string) {
this.value = parseInt(string, 10);
@hanshuebner
hanshuebner / live-clip-recorder.js
Created May 28, 2011 20:00
Ableton Live MIDI controlled clip recording
// While jamming with a keyboard, I often want to record some theme into a clip.
// I find it rather disruptive to have reach out for the mouse, or find a free clip
// slot on an APC, or use a touch interface or whatever. So this script comes to the
// rescue. It listens to MIDI events that I can trigger with a foot switch and records
// clips to the currently selected track. It uses the global quantization setting to
// determine the length of the clips that are created. Three MIDI events are used,
// one to record one clip, one to record clips until stops, and one to stop recording.
// The script automatically adds clips to the end of the currently selected track.