Skip to content

Instantly share code, notes, and snippets.

@berinhard
Created February 14, 2021 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berinhard/d08d7ae6f29227c5cdcbeda8d57d0044 to your computer and use it in GitHub Desktop.
Save berinhard/d08d7ae6f29227c5cdcbeda8d57d0044 to your computer and use it in GitHub Desktop.
Trilha Processing Community Day Brasil 2021
# Trilha para vídeo Processing Community Day Brasil 2021
# berin e vinícius
# niterói/lisboa - 14/02/2021 (domingo de carnaval)
Root.default = 'D'
Scale.default = 'minor'
Clock.set_time(0)
Clock.bpm = 120
var.base = var([0, 4, 3, 2, 1], dur=[12, 9, 1, 1, 1])
~d1 >> sinepad(
var.base + P[0, 2, 4],
oct=3,
lpf=PRand([300, 1400]),
amp=1,
drive=linvar([1,2], 12),
sus=1/3,
room=1,
echo=1,
echotime=1/3,
amplify=0.3
)
~d2 >> pulse(
P[0, 2, 4, P[7, 14, 7, 11], 6, 5, 4],
dur=P[3, 3, 3 + 8/9, 1/9, 1, 1, 12],
sus=P[1/9, 1/9, 1/9, 1/9, 1/3, 1/3, 1],
amp=1,
hpf=linvar([2400, 6000]),
hpr=0.1,
oct=5,
pan=PWhite(-.7, .7),
amplify=0.75,
).every(3, 'offadd', P[2, 4, 0].shuffle())
~d4 >> play(
'V',
chop=24,
dur=3,
amplify=0.3,
sus=3/2,
delay=0,
bits=4,
crush=16,
lpf=800,
lpr=1,
sample=0
)
~d3 >> play(
'T',
amp=.1,
dur=PDur([4, 5, 7], [9, 9, 9, 12]) * 2,
lpf=PRand(1300, 1800),
lpr=.3,
echo=1/9,
echodepth=1/24,
sample=[[3, 0, 2], [0, 0, 2], 1],
amplify=0.4,
pan=PWhite(-.7, .7),
)
~d5 >> zap(
var.base + P[-4:7:2].shuffle(),
dur=PDur([5, 4, 4], 6),
amplify=0.15,
oct=P[4, 5] + var([0, [1, 0]], dur=[9, 3]),
pan=[-.7, .7],
drive=0.2,
).every(12, 'offadd', [0, 4, 2])
Group(d5, d4, d2).solo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment