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 / 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
@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
// 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()
// 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() }
@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"
@khoparzi
khoparzi / 20Beats.tidal
Created June 5, 2019 05:34
Just a collection of basic beats suggested by Drum Beats Online in this video https://www.youtube.com/watch?v=mwe4HPOiUms
-- Just a collection of basic beats suggested by Drum Beats Online in this video
-- https://www.youtube.com/watch?v=mwe4HPOiUms
-- n "13" -- Kick
-- n "4" -- Hats
-- n "10" -- Tight Hats
-- n "5" -- Hats alt
-- n "11" -- Open hats
-- n "17" -- Really Open hats
-- n "21" -- Hat pedal
@khoparzi
khoparzi / Exploring-The-Edge.tidal
Last active January 19, 2020 10:25
Performance at Exploring The Edge, January 5th 2020 at the India International Centre
d1 $ fastflip $ s "scw*16"
# lpf 2000
# n (irand 100) # loop 7
# posz (-2) # rotz ((sinf 0.2) * 20 - 10) # sep 0.3 # fs 0
d2
$ degradeBy 0.25
$ footwork
$ s "dudak:2" # fs 2
d3m' 14
$ oftflip
$ s "808:1*8" # e tn # g 1.3
-- # lpf (4000)
d4
$ microd
$ slice 16 (scramble 4 "0 1 2 3") $ s "minim"
# n 18
# n "<16 18 15>"
-- Equinox stream
Hi All! I am Khoparzi from Allahabad, India
Playing out to you from Mumbai
d1
-- $ chup
$ microd
$ stb 0.3 (jux (rev))
$ oftflip
@khoparzi
khoparzi / Ritmo-Oslo-10July-2020.tidal
Last active July 12, 2020 15:13
Code from a live-coded performance at MusicLab 5: Lockdown Rave by UiOUiO RITMO Centre for Interdisciplinary Studies in Rhythm, Time and Motion, University of Oslo.
--The 5th edition of MusicLab is an algorave (algorithmic rave) featuring Renick Bell based in Japan, Khoparzi based in India, and researchers in Norway. Renick Bell and Khoparzi will improvise live-coded music on their computers while the audience dances. We will measure audience members' movement using our new MusicLab mobile application that uses smartphones' accelerometers and gyroscopes. We will also ask questions about the experience of the concert.
-- Watch the performance at https://www.youtube.com/watch?v=hJ73IGYawuM&t=865s
-- More information here: https://www.uio.no/ritmo/english/news-and-events/events/musiclab/2020/musiclab-5---lockdown-rave/index.html
-- All the custom functions are described in the end
bpm(160)
load "voxs"