Skip to content

Instantly share code, notes, and snippets.

d1 $ sound "mouth*4"
d1 $ every 3 rev $ every 4 (0.25 <~) $ slow 4 $ striate' 64 (1/40) ( sound "ulmel:1")
|+| speed "[1 1.5 1.25, 0.5]"
d2 $ every 3 (density 2) $ every 2 (density 2) $ sound "mouth*8"
|+| gain "0.6"
d3 $ jux (iter 8) $ sound "bd*2 ~ cp future future*2 ~ bd*4 sn*2"
|+| gain "0.7"
@kindohm
kindohm / TidalCustom.hs
Created January 29, 2015 16:04
mike-tidal-custom
{-# OPTIONS_GHC -XNoMonomorphismRestriction #-}
### put this in your home directory
module TidalCustom where
import Data.Ratio
import Control.Applicative
import qualified Data.Map as Map
@kindohm
kindohm / ring-surfing.tidal
Last active August 29, 2015 14:19
Ring Surfing (live-coded mix)
{-|
Static example code of a live-coded performance of Ring Surfing
for ODD7 live-coding compilation release (summer 2015).
Performance video: https://youtu.be/4KZn0YBpx9o
Performed on 2015-04-21 by Kindohm (a.k.a. Mike Hodnick)
-}
bps (200/120)
let rip a b p = within (0.25, 0.75) (slow 2 . rev . stut 8 a b) p
@kindohm
kindohm / warm-waves.tidal
Created April 24, 2015 14:06
Warm Waves (live-coded mix)
{-|
Static example code of a live-coded performance of Warm Waves
for ODD7 live-coding compilation release (summer 2015).
Performed on 2015-04-24 by Kindohm (a.k.a. Mike Hodnick)
-}
-- midi setup
import Sound.Tidal.MIDI.Output
import Sound.Tidal.VolcaKeys
keyStreams <- keyproxy 1 4 keys [1]
import Sound.Tidal.MIDI.Output
import Sound.Tidal.VolcaKeys
import Sound.Tidal.SimpleSynth
import Sound.Tidal.Rytm
keyStreams <- keyproxy 1 "Scarlett 18i8 USB" keys [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
[bd,sd,rs,cp,bt,lt,mt,ht,ch,oh,cy,cb,k13,k14,k15,k16] <- sequence keyStreams
@kindohm
kindohm / snippets.cson
Last active August 29, 2015 14:24
atom-tidal snippets
# atom-tidal snippets
#
# These are atom editor snippets that automate some of my common tasks
# while live coding music with Tidal. They only work with .tidal files.
#
# To use, in Atom go to File -> Open Your Snippets, then paste in this code.
#
# I created these snippets because I often find myself typing the same Tidal code
# over and over again. Your mileage may vary; maybe these don't suit your needs,
# but you can also use them as a reference for your own Tidal snippets.
@kindohm
kindohm / index.js
Created July 6, 2015 00:41
photo rename
var path = 'C:\\Users\\Mike\\code\\rename\\*.jpg';
var glob = require("glob")
var fs = require('fs');
var exif = require('exif');
var _ = require('lodash');
var Promise = require('bluebird');
var pathModule = require('path');
var pad = require("node-string-pad");
@kindohm
kindohm / breaks.rb
Last active August 22, 2021 16:08
Sonic Pi Breaks
# mashing up breakbeats in Sonic Pi
# resulting audio: https://soundcloud.com/kindohm/sonic-pi-breaks
# this var changes the playback speed of the breaks,
# which in turn controls the loop sleep time and overall tempo
rate = 1
# samples paths
samples = []
samples.push("C:\\tidal-samples\\samples\\akuma\\Half Baked break a.wav")
@kindohm
kindohm / stack.tidal
Created July 22, 2015 13:55
stack with variation
d1 $ every 2 (5.25 <~) $ every 3 (3.75 <~) $ slowcat [
sound (samples "set1*8" (run 16)),
sound (samples "set2*8" (run 16)),
sound (samples "set3*8" (run 16)),
sound (samples "set4*8" (run 16)) ]
-- or for more variation, use "irand" instead of "run"
@kindohm
kindohm / timing.rb
Created July 22, 2015 17:45
timing
live_loop :thing do
sample :drum_bass_hard
sleep 0.75
4.times do
sample :drum_cymbal_soft, rate: rrand(2,4)
sleep 0.125
end
end
live_loop :snare do