Skip to content

Commit 47d5f1a

Browse files
committed
chore: add fetedelamusic(may need cleaning) and gabber
1 parent d05bd87 commit 47d5f1a

2 files changed

Lines changed: 104 additions & 0 deletions

File tree

fuz-fete-musik.js

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
shape(20)
2+
.color(
3+
() => a.fft[3],
4+
[0, 1].smooth(0.8),
5+
() => Math.sin(time),
6+
)
7+
.mask(src(o0))
8+
.diff(shape(99, 0.3))
9+
.scale([1.3, 1.2, 1.5, 1.2, 1.6].smooth())
10+
.blend(src(o0).scale(() => -a.fft[0] / 3 + 0.6))
11+
.out(o0)
12+
13+
s1.initImage("http://127.0.0.1:8080/rats-barantokmakoglu.png")
14+
15+
bpm = 170
16+
17+
a.show()
18+
a.setSmooth(0.2)
19+
// Beerware
20+
// Sylvain "Magicking" Laurent
21+
await loadScript('http://127.0.0.1:8080/hydra-fractals.js')
22+
await loadScript('http://127.0.0.1:8080/hydra-outputs.js')
23+
await loadScript('http://127.0.0.1:8080/hydra-colorspaces.js')
24+
await loadScript('http://127.0.0.1:8080/index.js')
25+
oS.setNearest();
26+
src(o0)
27+
.scale(0.75)
28+
.add(noise(3, 1).color(0.3, 0.3, 0.8), () => a.fft[0] * 3.5)
29+
.add(
30+
gradient()
31+
.rgb.aSet(0)
32+
.cmyk.from()
33+
.hsv.hOffsetFrom(noise(3), 0.3)
34+
.yuv(0.5, 0.2)
35+
.mask(shape(3).scale(() => a.fft[0] * 3.5)),
36+
)
37+
.invert()
38+
.mirrorY2()
39+
.mirrorX2()
40+
.blend(o0, 0.3)
41+
.out(o3);
42+
await midi.start().show()
43+
//oS.setLinear()
44+
//oS.setNearest()
45+
bpm = 140
46+
src(s1).scale(()=>a.fft[2])
47+
.blend(o0,()=>a.fft[3])
48+
.blend(osc(1),note(48))
49+
.blend(osc(1,0).color(1,0,0),note(53))
50+
.blend(osc(1,0).color(0,1,0),note(50))
51+
.blend(osc(1,0).color(0,0,1),note(52))
52+
.blend(src(o3),note(55))
53+
.blend(src(s0).diff(o2),note(49))
54+
.out(o1)
55+
src(s0).out(o2)
56+
render(o1)
57+
a.show()
58+
a.setBins(4)
59+
a.setSmooth(0.3)
60+
a.setScale(8)
61+
a.setCutoff(1)
62+
63+
// Beerware
64+
// Sylvain "Magicking" Laurent
65+
s0.initCam()
66+
// License Beerware
67+
// Author Magic SL
68+
69+
c = 0;
70+
bpm = 180;
71+
crown = new Array(13).fill().reduce(
72+
(acc, e) =>
73+
acc.add(
74+
shape(3, 0.2, 0.2)
75+
.color(0.9, 0.6, 0.3)
76+
.rotate((c += 10), 0.1),
77+
),
78+
solid(),
79+
);
80+
crown
81+
.layer(
82+
noise().mask(
83+
noise(20).modulate(
84+
noise(10).luma(0.9, () => a.fft[3] * 2),
85+
0.2,
86+
),
87+
),
88+
)
89+
.rotate(2)
90+
.add(osc(2, 0.01, () => Math.cos(time / 1000) * Math.PI))
91+
.modulate(osc(() => a.fft[1] / 1000))
92+
.out(o3);
93+

gabber.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
bpm=220
2+
osc().scale(()=>a.fft[0]).color([1],[1,0],0)
3+
.blend(osc(30,0.1).color(.8,.8,0))
4+
.add(shape([3,42,3].smooth()).scale(()=>a.fft[1]*3))
5+
.diff(shape([3,42,3].smooth()).scale(()=>a.fft[1]*1.3))
6+
.diff(shape([3,42,3].smooth()).scale(()=>a.fft[1]*1.1))
7+
.repeat([3,4],[3,4])
8+
.blend(o0,0.6)
9+
.out()
10+
11+
a.show()

0 commit comments

Comments
 (0)