Skip to content

Instantly share code, notes, and snippets.

@ahefner
ahefner / krep.lisp
Created December 1, 2013 17:51
Stand-alone version of PAIP "krep", extracted from paiprolog.
;;; -*- Mode: Lisp; Syntax: Common-Lisp; -*-
;;; Code from Paradigms of Artificial Intelligence Programming
;;; Copyright (c) 1991 Peter Norvig
;;; krep.lisp: Knowledge representation code; final version.
;;; Adds support for worlds and attached functions.
;;; Stand-alone version.
(defpackage :krep
@ahefner
ahefner / microtonal-1.lisp
Created January 17, 2012 06:13
Microtonal / Just intonation experiments in Lisp
;;;; Fun with Lisp: Just-intonation and Microtonality.
;;;; If you're interested in Lisp, audio/music hacking, just-intonation or
;;;; microtonality, then this is the sort of thing you're interested in.
;;;; (C) Copyright 2012 Andy Hefner <ahefner@gmail.com>
;;;; This code is released in the public domain.
;;; First, we'll need a way to play audio. In the past, I dumped the
;;; raw audio out to a file in /tmp and played it by shelling out to