-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstrudel-lofi-CodingWCal.js
More file actions
158 lines (135 loc) · 2.37 KB
/
strudel-lofi-CodingWCal.js
File metadata and controls
158 lines (135 loc) · 2.37 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
//CodingWCal - GitHub Strudel Lo Fi Beat
setcps(.39)
swing(.21)
let kick =
s("bd ~ ~ ~ bd ~ ~ ")
let ghostKick =
s("~ bd ~ ~ ~ bd ~ ~ ")
.gain(.4)
let snare =
stack(
s("~ ~ sd ~ ~ ~ sd ~").gain(.7),
s("~ ~ sd ~ ~ ~ sd ~").gain(.15).lpf(1200)
)
let rim =
s("~ ~ ~ ~ rim ~ ~ ~")
.gain(.05)
let hats =
s("hh*8")
.gain(sine.range(.18,.28).slow(6))
.hpf(3500)
.late(sine.range(0,.015).slow(4))
let drums =
stack(kick, snare, hats, ghostKick, rim)
let chords =
note("<[f2,ab3,c4,eb4,ab4 f2*2] [db2,f3,ab3,c4, c4*4 db2*2] [ab2,c3,eb3,g3,c4,ab3 ab4*4] [c3,e3,g3,bb3] [ab3,c4,eb4,f4]>")
.sound("piano")
.slow(2)
.room(.6)
.delay(.22)
.gain(.60)
.lpf(sine.range(900,1400).slow(16))
._pianoroll()
let altChords =
stack(
note("<f3 db3 ab3 c4>")
.sound("piano")
.slow(2)
.gain(.4),
note("<[ab3,c4,eb4]*8 [f3,ab3,c4] [c4,eb4,g4]*8 [e4,g4,bb4]*2>")
.sound("piano")
.slow(2)
.late(.126)
.gain(.75)
)
.lpf(1200)
.room(.4)
._pianoroll()
let bass =
note("<~ f1 ab1 db1 ~ db1 c2 ~ ab1 ~ c2 db2>")
.sound("bass")
.slow(2)
.lpf(350)
.gain(.95)
.late(.02)
let sub =
note("<f0 ~ db0 ~ ab0 ~ c1 ~>")
.sound("bass")
.slow(2)
.lpf(200)
.gain(.4)
let arp =
note("<f5 ab5*2 c6 eb6*8 ab5*2 c7*4>")
.fast(2)
.sound("piano")
.gain(.60)
.room(.4)
.delay(.2)
.lpf(1500)
._pianoroll()
let burst =
note("<f7 f7 f7 eb7>")
.fast(8)
.sound("piano")
.gain(.10)
.room(.1)
let burst2 =
note("<f4 ab3*4 c3 eb3 c3 ab4*2 eb4>")
.fast(8)
.sound("piano")
.delay(.2)
.gain(.10)
.room(.1)
._pianoroll()
let topline =
note("<c5 ~ eb5 ~ g5 ~ ab5 ~ ~ ~ ~ ~>")
.sound("piano")
.slow(2)
.gain(.40)
.room(.6)
.delay(.25)
._pianoroll()
let texture =
s("white")
.gain(sine.range(.01,.03).slow(12))
.hpf(6000)
.slow(8)
let intro =
stack(
chords.gain(.3),
texture
)
let groove =
stack(
drums,
bass,
chords,
texture
)
let sparkle =
stack(
drums,
bass,
chords,
altChords,
topline,
texture
)
let drop =
stack(
drums,
bass,
sub,
chords,
arp,
topline,
burst.every(4, x => x),
burst2.every(12, x => x),
texture
)
arrange(
[4, intro],
[8, groove],
[8, sparkle],
[8, drop]
)