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
sin = ({time}) => Math.sin(time) // sin | |
sq = ({time}) => ((Math.sin(time) < 0) ? 0 : 1) // square | |
saw = ({time}) => (time % 1) * 2 - 1 // saw | |
sinf = (freq) => ({time}) => Math.sin(time*freq) // sin at freq | |
sqf = freq => ({time}) => ((Math.sin(time*freq) < 0) ? 0 : 1) // square at freq | |
sawf = (freq) => ({time}) => ((time * freq) % 1) * 2 - 1 // saw at freq | |
rsinf = (min,max,freq) => ({time}) => Math.sin(time*freq) * max + min // ranged sin at freq | |
rsqf = (min,max,freq) => ({time}) => ((Math.sin(time*freq) < 0) ? 0 : 1) * max + min // ranged square at freq |
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
// 1 Mar 2021 | |
// Alright time for a new 30 day series! I present to you a new round of Marching.js | |
m = march( | |
u = Union2( | |
hl1 = Halve(Onion(Sphere(3), 0.012), Halve.UP), | |
hl2 = Halve(Onion(Sphere(2), 0.012), Halve.UP), | |
hl3 = Halve(Onion(Sphere(1), 0.012), Halve.UP), | |
hl4 = Halve(Onion(Sphere(0.5), 0.012), Halve.UP), |
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
-- _______ __ __ _______ __ _______ __ __ __ __ __ | |
-- | __|__| |_| | |.--.--.| |--. | __|.---.-.| |_.-----.| | |__| |_.-----. | |
-- | | | | _| || | || _ | |__ || _ || _| -__|| | | | _| -__| | |
-- |_______|__|____|___|___||_____||_____| |_______||___._||____|_____||__|__|__|____|_____| | |
------------------------------------------------------------------------------ | |
-- HARMONIUM | |
d1 | |
-- $ degradeBy 0.2 |
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
d1 | |
-- $ dubd | |
-- $ stb 0.3 (chunk 8 (fast 2)) | |
-- $ slow 8 $ chop 16 | |
-- $ smash 8 [2,8,7,2] | |
-- $ fast 2 | |
$ s "pads" # n 3 # l 1 -- Peace is the mission | |
-- $ s "pads" # n 20 # l 1 -- Intense pads | |
-- $ s "pads" # n 21 # l 1 -- Elevate | |
-- $ basspad # l 1 |
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
// Try these at https://charlieroberts.github.io/marching/playground/ | |
// 1 Jul | |
march( | |
mb = Julia() | |
.material(Material('phong', Vec3(.0), Vec3(.5), Vec3(1), 32, Vec3(0))), | |
Plane(Vec3(0, 0, 1), 0.5).material('white glow') | |
) | |
.fog( .2, Vec3(0.25, 0.3, 0) ) |
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
--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" |
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
-- 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 |
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
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>" |
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
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 |
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
-- 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 |
NewerOlder