Skip to content

Instantly share code, notes, and snippets.

(
play{
var n = 5;
var fmodrate = Duty.kr(2, 0, Drand([1/16, 1, 1/16, 1/8, 4], inf));
Limiter.ar(GVerb.ar(Pan2.ar(
Mix.fill(n, { arg index;
SinOsc.ar(440 + (index ** n), SinOsc.ar(440 + (index ** n), 0, Saw.kr(fmodrate, 2.5, 2.5)), 1 / n)
}),
SinOsc.kr(1)
), revtime: SinOsc.kr(1/16, 0, 2, 3)
(ns test.core
(:use [overtone.live]
[overtone.inst.synth]))
(def kick (sample "kick.wav"))
(def snare (sample "snare.wav"))
(def hit (sample "hit.wav"))
(def insts {:kick kick
:snare snare
:hit hit})
@rbxbx
rbxbx / .inputrc
Created September 8, 2011 16:53 — forked from tpope/.inputrc
Basic amenities for vi readline bindings
set keymap vi-insert
Control-a: beginning-of-line
Control-b: backward-char
Control-d: delete-char
Control-e: end-of-line
Control-f: forward-char
Control-k: kill-line
Control-n: next-history
Control-p: previous-history
set keymap emacs-ctlx
Feature: Get
In order to interact with the command line
As an end user
I want to see and enter things
Scenario:
Given I will see "Private?"
Then I will enter "Yes, sir?"
Then I will see "Jump"
# usage:
# field_labeled('Select your address').should have_option("Home Address")
Spec::Matchers.define :have_option do |expected|
def options_for(select_field)
select_field.options.map(&:inner_text)
end
match do |select_field|
raise "Field is not a SelectField" unless select_field.kind_of?(Webrat::SelectField)
options_for(select_field).include?(expected)