Skip to content

Instantly share code, notes, and snippets.

View khoparzi's full-sized avatar
💭
Instigating Creativity

khoparzi

💭
Instigating Creativity
View GitHub Profile
@khoparzi
khoparzi / Sante-Algorave-26May-2019.tidal
Last active May 28, 2019 20:31
Code for my techno/footwork crossover set for Bengaluru's first Algorave
let chup = mute
o = octave
ruppit p = spread fast [1, 2, 3, 4] $ p
weird p = randDelay p = ((# delay (range 0.5 0.7 $ shift' 5001 $ rand)) . (# delaytime (shift' 5002 $ choose delays)) . (# delayfeedback (range 0.5 0.9 $ shift' 5003 $ rand))) $ p
microd p = often ((# delay 0.3) . (# delaytime (choose[(1/16), (1/32)])) . (# delayfeedback 0.8)) $ p
setcps(140/120)
-- Angles break from the famous pack of breaks
p "d"
// With p5
p = new P5()
s0.init({src: p.canvas})
p.hide()
img = null;
// With beta api
url = "http://api.giphy.com/v1/gifs/search?api_key="+giphyApiKey+"&limit=1"
makeGif = (giphy) => {
if (img != null && img.elt != null) { img.remove() }
// Importing GIPHY gifs in Hydra
// NPM install https://github.com/Giphy/giphy-js-sdk-core
var GphApiClient = require('giphy-js-sdk-core')
giffer = GphApiClient(<YourGiphyApiKey>)
// With p5
p = new P5()
s0.init({src: p.canvas})
p.hide()
@khoparzi
khoparzi / init-1.0.0.hs
Last active August 30, 2020 17:10 — forked from jarmitage/init-1.0.0.hs
tidal goodies ported to 1.0.x
module Init where
-- import Sound.Tidal.SpectralTricks
-- import qualified Sound.Tidal.Scales as Scales
-- import qualified Sound.Tidal.Chords as Chords
import Sound.Tidal.Utils
@khoparzi
khoparzi / instagram.html
Created February 6, 2019 10:49
A little include that lets you embed Instagram posts on your GitHub Pages site.
<blockquote class="instagram-media" data-instgrm-permalink="https://www.instagram.com/p/{{ include.id }}/?utm_source=ig_embed&amp;utm_medium=loading" data-instgrm-version="12" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:540px; min-width:326px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);">
<div style="padding:16px;"> <a href="https://www.instagram.com/p/{{ include.id }}/?utm_source=ig_embed&amp;utm_medium=loading" style=" background:#FFFFFF; line-height:0; padding:0 0; text-align:center; text-decoration:none; width:100%;" target="_blank">
<div style=" display: flex; flex-direction: row; align-items: center;">
<div style="background-color: #F4F4F4; border-radius: 50%; flex-grow: 0; height: 40px; margin-right: 14px; width: 40px;"></div>
<div style="display: flex; flex-direction: column; flex-grow: 1; justify-content: center;">
<div style=" ba