-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmekaboy.js
More file actions
95 lines (81 loc) · 1.76 KB
/
mekaboy.js
File metadata and controls
95 lines (81 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
samples('https://raw.githubusercontent.com/tidalcycles/Dirt-Samples/refs/heads/master/strudel.json')
// samples('shabda/speech/pt-BR/m:floresta,tropical,lluvia,cae,del,cielo')
setCpm(42)
const kar = [
`[0 0 0 0]`,
`[0 0 0 0]
[0 0 0 [0 0]]`.slow(2)
]
const kick = n(kar[1]).s("house")
.distort(0.5)
const cp = s("[~ ~ cp ~]!2").bank("tr909")
// .delay(0.125)
.room(0.2)
.dec(0.1)
const hh = s("[~ ~ hh ~]!4").bank("tr909")
.delay(0.1)
.room(0.05)
const rd = s("[~ ~ rd ~]!4").bank("tr909")
.delay(0.125)
.room(0.2)
.attack(0.1)
const sq = n("<[0 ~ 0 ~]!15 [0 ~ 0*2 0]!1>".fast(4)).s("akaixr10_bd:7")
.add(0.25)
.dec(0.5)
.delay(0.1)
.attack(0)
const bk = s("breaks125")
.fit()
.scrub(irand("<16>").rib(0, 8).div(16).seg(8))
.dec(0.05)
.room(0.2)
.delay(0.5)
let i = 0
const ba = [
"<1>",
"<1 1 1 1 8 16 13 16>",
"<16 8 10 30/2 10 2>",
"<16 8 10 30/2 10 2>",
]
const bb = [
"<[x x x [x x]]>",
"<[x x x x]!4 [x x x [x x]]!2>",
"<[x x x x]>",
"<[x [x x] x]>",
]
const ac = [
0,
sine.range(0.2, 0.1),
sine.range(0, 0.1),
0
]
const bass = n(irand(ba[i]).rib(0, 10)).sub(8).struct(bb[i].fast(2))
.scale("G1:minor G3:minor G3:minor G3:minor")
.sound("<sine,pulse z_sine>")
.dec(sine.range(0, 0.5))
.attack(ac[i])
.fm(sine.range(0, 6))
.sustain(1)
.delay(0.12)
// .chorus()
.lpe(sine.range(0, 18))
.lpf(tri.range(100, 60))
.distort(0.2)
.room(0.25)
.roomlp(1200)
.size(0.2)
// .jux(rev)
// hii :)) lets see whats up for today
$: stack(
// kick.duckorbit(2).duckattack(0.2).duckdepth(0.4),
// hh.gain(0.3),
// cp.gain(0.5),
// sq.loopAt(2).gain(0.6).orbit(2),
// rd.gain(0.15).orbit(2),
// bass.orbit(2),
// bk.gain(0.4),
)
.hpf(slider(465.6, 0, 1200))
// .punchcard()
// .scope()
// .bank("909")