#Audio-reactive #GlitchArt
Piece created with code in Hydra. Hydra is a toolkit for live coding of network visuals created by Olivia Jack (ojack.xyz)
/*
Shifted
by Daniel Oropeza
Tw: @ferdoropeza
*/
s0.initVideo("https://media.giphy.com/media/l41lNNAgkhXPOF9O8/giphy.mp4")
d = 0.001
solid(1, 1, 1)
.diff(
src(o0)
.modulate(
osc(6, 0, 1.5)
.thresh(0, 2)
.brightness(-.5)
.modulate(
voronoi(5, 0.03, 2)
.sub(gradient()
.r()
.g()), 1), 0.1)
)
.mult(src(o0)
.scroll(0.00, d)
.add(src(o0)
.scroll(0.00, -d))
.add(src(o0)
.scroll(d, 0.00))
.add(src(o0)
.scroll(-d, 0.00))
.color(.5, .5, .5)
.add(src(o0))
.color(1 / 3, 1 / 3, 1 / 3)
.contrast(2), .7)
.add(o0)
.layer(shape([200, 4, 4, 200, 4], [0, 1].smooth(), [0, 0.1].reverse()
.smooth())
.g()
.scale(1, 0.5, 1)
.colorama([0, 10].smooth()
.fast(1 / 10))
.thresh([0, 0.89].smooth())
.mult(src(s0)
.scale(1, innerHeight / innerWidth))
.invert(() => a.fft[0] * -1)
.scroll(({
time
}) => Math.random(time * 0.01) * innerHeight, ({
time
}) => Math.random(time * 0.01) * innerWidth)
.add(src(o0)
.modulate(
osc(6, 0, 4.5)
.brightness(-.5)
.modulate(noise(3, .1)
.modulatePixelate(
noise(3, .1), 504, 8)
.add(gradient(), -1), 1)
.add(gradient()
.brightness(-.5), 3), -.001))
.add(o0, 0.4)
.color(() => a.fft[0] * 2, () => a.fft[1] * -2 % 0.5 + 0.1, () => a.fft[2] * 2))
.out()
a.setBins(6)
a.setCutoff(2)
a.setScale(4)