Skip to content

Instantly share code, notes, and snippets.

@ctford
ctford / my_friend.clj
Last active August 29, 2015 14:15
Music with Overtone.
(ns my-friend.my-friend
(:require [overtone.live :refer :all]
[leipzig.melody :refer :all]
[leipzig.scale :as scale]
[leipzig.canon :as canon]
[leipzig.live :as live]
[leipzig.chord :as chord]
[leipzig.temperament :as temperament]))
; Instruments
@ctford
ctford / kensington.clj
Created February 12, 2015 23:41
An Overtone jam session.
(ns kensington.kensington
(:require [overtone.live :refer :all]
[leipzig.melody :refer :all]
[leipzig.scale :as scale]
[leipzig.live :as live]
[leipzig.chord :as chord]
[leipzig.canon :as canon]
[leipzig.temperament :as temperament]))
; Instruments
@ctford
ctford / squashed.clj
Created February 12, 2015 23:34
An experiment with the Byzantine scale
(ns squashed.squashed
(:require [overtone.live :refer :all]
[leipzig.melody :refer :all]
[leipzig.scale :as scale]
[leipzig.live :as live]
[leipzig.chord :as chord]
[leipzig.temperament :as temperament]))
; Instruments
(definst bass [freq 110 volume 0.1]
@ctford
ctford / home_alone.clj
Created February 11, 2015 11:46
Some music via Leipzig and Overtone.
(ns home-alone.home-alone
(:require [overtone.live :refer :all]
[leipzig.melody :refer :all]
[leipzig.scale :as scale]
[leipzig.live :as live]
[leipzig.chord :as chord]
[leipzig.canon :as canon]
[leipzig.temperament :as temperament]))
; Instruments
@ctford
ctford / stacktrace
Created December 23, 2014 17:38
Stacktrace of file encoding problem in core.typed.
traversy.lens=> (clojure.core.typed/check-ns)
Start collecting traversy.lens
FileNotFoundException /home/ctford/Código/traversy/src/traversy/lens.clj (No existe el archivo o el directorio) java.io.FileInputStream.open (FileInputStream.java:-2)
traversy.lens=> (pst)
FileNotFoundException /home/ctford/Código/traversy/src/traversy/lens.clj (No existe el archivo o el directorio)
java.io.FileInputStream.open (FileInputStream.java:-2)
java.io.FileInputStream.<init> (FileInputStream.java:146)
clojure.java.io/fn--8642 (io.clj:242)
clojure.java.io/fn--8577/G--8542--8584 (io.clj:73)
@ctford
ctford / song.clj
Created October 4, 2014 18:57
Piano freak
(ns piano-freak.song
(:require [overtone.live :refer :all]
[leipzig.melody :refer :all]
[leipzig.scale :as scale]
[leipzig.live :as live]
[leipzig.chord :as chord]
[leipzig.temperament :as temperament]))
; Instruments
(definst bass [freq 110 dur 1 volume 1.0]
@ctford
ctford / song.clj
Created October 3, 2014 17:56
Little triangles
(ns triangles.song
(:require [overtone.live :refer :all]
[leipzig.melody :refer :all]
[leipzig.scale :as scale]
[leipzig.live :as live]
[leipzig.chord :as chord]
[leipzig.temperament :as temperament]))
; Instruments
(definst bass [freq 110 volume 1.0]
@ctford
ctford / song.clj
Created September 30, 2014 19:50
Suits me fine
(ns suits-me-fine.song
(:require [overtone.live :refer :all]
[leipzig.melody :refer :all]
[leipzig.scale :as scale]
[leipzig.live :as live]
[leipzig.chord :as chord]
[leipzig.temperament :as temperament]))
; Instruments
(definst bass [freq 110 volume 1.0]
@ctford
ctford / song.clj
Created September 28, 2014 19:22
Tuesday - written with Overtone and Leipzig.
(ns tuesday.song
(:require [overtone.live :refer :all]
[leipzig.melody :refer :all]
[leipzig.scale :as scale]
[leipzig.live :as live]
[leipzig.chord :as chord]
[leipzig.temperament :as temperament]))
; Instruments
(definst bass [freq 110 volume 1.0]
@ctford
ctford / intro.clj
Last active February 4, 2016 15:19
Clojure introduction
; Why Clojure?
;
; * Interactive
; * Succinct
; * Consistent
; * Java interoperability
; Try Clojure is an online "repl", where you can try out Clojure expressions.
; http://tryclj.com/