Skip to content

Instantly share code, notes, and snippets.

@pavpanchekha
pavpanchekha / seqhash.py
Last active August 29, 2015 14:10
SeqHash, in progress
import hashlib
import collections
import sys
# Functions have types, of form [A @] [a] -> [b] [@ B]
# where A and B are coeffects & effects
# Any part might be omitted if null
def prf(val): # str -> seq(bool)
m = hashlib.sha512()
@kelsey-sorrels
kelsey-sorrels / markov.clj
Created September 6, 2012 04:46
Overtone Internal Sequencer with Markov chains
(ns overtone.examples.internal-sequencer
(:use [overtone.live]))
;; A fully server-side sample sequencer.
;; =====================================
;; This example demonstrates some of the benefits of moving all synth
;; triggers inside the server itself. For example, it allows you to
;; modify the synthesis with *immediate* effect (rather than waiting for
;; the next bar/chunk to be scheduled) and you can use a global pulse to
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//