This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Tribute to Dr Who coded by Robin Newman, February 2015 | |
#Better on a Pi2 or Mac. A bit scratchy on B+ but just about OK | |
use_synth :prophet #synth for bass part | |
s=0 #to set the scope of the variable redefined in the next function | |
define :usebpm do |n| #setup own bpm definition | |
s=1.0/8*120/n | |
end | |
usebpm(200) #set required bpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn on-changes | |
"Middleware factory which acts a bit like \"reaction\" (but it flows into db , rather than out) | |
It observes N inputs (paths into db) and if any of them change (as a result of the | |
handler being run) then it runs 'f' to compute a new value, which is | |
then assoced into the given out=path within app-db. | |
Usage: | |
(defn my-f | |
[a-val b-val] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns x.y | |
(:use [plumbing.core]) ;; Just for the map-vals | |
(:require [clojure.walk :refer [postwalk prewalk prewalk-demo postwalk-demo]] | |
[clojure.core.match :refer [match]] | |
[schema.utils :refer [named-error-explain validation-error-explain]] | |
[schema.core :as s]) | |
(:import (schema.utils NamedError ValidationError))) | |
;; Partially FROM: | |
;; https://github.com/puppetlabs/clj-schema-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use_debug false | |
use_bpm 130 | |
# Our mixer! | |
master = (ramp *range(0, 1, 0.01)) | |
kick_volume = 1 | |
bass_volume = 1 | |
revbass_volume = 1 | |
snare_volume = 0.5 | |
hats_volume = 0.5 |
This is an evil experiment at the moment but it works
- Download and install LMMS from http://lmms.io
- Run the attached SuperCollider file to create the synthdef locally (Overtone doesn't have
ladspa
yet) - patch the named ruby files as per the other attachments
- start Sonic Pi
These are just proof of concept at the moment. All taken from the following sources:
Credits for Nescaline to:
* Copyright (c) 2014 Vesa Kivimäki
This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.
The Atom documentation is excellent. It's highly worth reading the flight manual.
Alan Dipert (@alandipert) and Micha Niskin (@micha)
for Boot, slides and help with Boot intel.
Juno Terepi (@deraen)
for slides and help with Lein pitfals