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 music.so-empty-forms | |
(:use [overtone.live])) | |
(declare fade-envelope) | |
(declare line-osc) | |
; Six Empty Forms (for Agnes Martin) – Mark So (2006) | |
(definst I [] | |
(let [t (* 22 60)] |
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
import ddf.minim.*; | |
import ddf.minim.analysis.*; | |
import ddf.minim.spi.*; | |
import ddf.minim.ugens.*; | |
Minim minim; | |
AudioOutput output; | |
MultiChannelBuffer buf; | |
AudioRecordingStream stream; | |
FilePlayer player; |
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 kraehenbuehl.core | |
(:require [leipzig.scale :as scale] | |
[leipzig.chord :refer [root triad inversion]] | |
[overtone.music.pitch :refer [find-note-name]])) | |
;eg. (kraehenbuehl (comp scale/G scale/major) [62 64 62 60 59]) | |
;=> ((43 55 59 62) (52 55 59 64) (47 54 59 62) (38 54 57 60) (43 50 55 59)) | |
(declare pitch-class) | |
(declare triad-with-top) |
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
(def scaffold (load-sample "scaffold.flac")) | |
(def park (load-sample "hyde-park.flac")) | |
(def valetta (load-sample "valettasnip.flac")) | |
(def buf1 (buffer 2048)) | |
(def buf2 (buffer 2048)) | |
(definst spectralblend [buf-a 0 buf-b 1 hold-time 60 x-over-time 10] | |
(let [amp1 2.5 | |
amp2 1.4540 ; magic numbers for amplitude correction |
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
/* Contributions from B0s→φµ+µ−decays | |
Candidates are rejected if | |
- 5321<mK(π→K)µµ<5411MeV/c2 and either: | |
- 1010<mK(π→K)<1030MeV/c2 and the pion satisfies DLLKπ>−10; | |
- or 1030<mK(π→K)<1075MeV/c2 and the pion satisfies DLLKπ>10. */ | |
RooFormulaVar B0stoPhimm("B0stoPhimm", "!((5321<@0<5411) && " | |
"((1010<@1<1030 && @2>-10) ||" | |
"(1030<@1<1075 && PI_PIDK>10)))", | |
RooArgList(B0_MM, B0_kpiswapMass, Pi_PIDK)); |
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
extract () { | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xjf $1 ;; | |
*.tar.gz) tar xzf $1 ;; | |
*.bz2) bunzip2 $1 ;; | |
*.rar) rar x $1 ;; | |
*.gz) gunzip $1 ;; | |
*.tar) tar xf $1 ;; | |
*.tbz2) tar xjf $1 ;; |
NewerOlder