Skip to content

Instantly share code, notes, and snippets.

d1 $ slow 2 $ stack [
slow 2 $ slowspread (chop) [128, 64, 32] $ jux (iter 10) $ (preplace (1,1) ("[x x ~ x x ~ ~ x x ~]?" :: Pattern String) $
grp [n_p, dur_p] ( "67:1 68:6 78:1 77:2")) # s "tri" |-| n "36" # vowel "[a, i] u"
# velocity "0.4",
slow 0.5 $ sometimes (palindrome) $ (preplace (1,1) ("x x? ~ ~ ~ ~ ~ x x ~" :: Pattern String) $
grp [n_p, dur_p] "67:1 68:6 78:1 77:2") # s "kalimba"
# velocity "0.4",
sound "kick?" # gain "0.6"
] |/| dur "2.5" # gain "0.8"
@lennart
lennart / .emacs
Last active February 21, 2016 10:22
;; Package Repository Requirements
(when (> emacs-major-version 23)
(require 'package)
(package-initialize)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/")
@lennart
lennart / blinken.ino
Last active January 4, 2016 11:37
Lo-Fi Arduino Tidal binding, makes lights go on by color name.
/*
Tidal <-> Arduino
send rhythmic patterns to custom hardware
assumes three leds connected to Arduino on Digital Pins:
13 red
12 yellow
11 green
@lennart
lennart / ChangeTime.hs
Created December 16, 2015 19:18
Changing time in tidal via OSC messages
import Sound.OSC.FD
import Data.Maybe
import Sound.Tidal.Context
import Control.Applicative
oscTempoResponder = do
x <- udpServer "127.0.0.1" 4013
(cps, getNow) <- bpsUtils
forkIO $ loop cps x
@lennart
lennart / tidal.hs
Last active November 29, 2015 21:13
Simple Tidal Interpreter using hint
import Sound.Tidal.Context
import System.IO
import Control.Monad
import Language.Haskell.Interpreter
main :: IO ()
main = do
s <- getContents
r <- runInterpreter (testTidal $ lines s)
case r of
@lennart
lennart / aliases
Created June 3, 2015 11:05
Bash Alias for converting rgb values to hex, Usage: rgb2hex 12 245 14
alias rgb2hex='printf "#%02x%02x%02x\n"'
@lennart
lennart / CMakeLists.txt
Last active August 29, 2015 14:18 — forked from roxlu/.gitignore
cmake_minimum_required(VERSION 2.8)
set(app ocean)
set(sd ${CMAKE_CURRENT_LIST_DIR}/../src/)
include_directories(
${CMAKE_CURRENT_LIST_DIR}/../src
${CMAKE_CURRENT_LIST_DIR}/../extern/include
)
[
{
"caption": "SublimeREPL: Tidal",
"command": "run_existing_window_command", "args":
{
"id": "repl_tidal",
"file": "config/Tidal/Main.sublime-menu"
}
}
]
// Generated on 2014-05-02 using generator-angular 0.8.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
@lennart
lennart / README.md
Last active June 24, 2019 19:11
Splended, a simple Sampler Builder based on Blender… It is, though, just a script.

splended

Build musical samplers with blender, splended helps you!

Installation

OS X

put splended.py into ~/Application Support/Blender/2.xx/scripts/