-
Notifications
You must be signed in to change notification settings - Fork 0
/
a_little_faster
158 lines (143 loc) · 3.81 KB
/
a_little_faster
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
156
157
158
# Title: alittlefaster
# Author: TheAnalogyGuy
# Date: 2022-05-16
# Notes: See https://sonic-pi.net/ to play the song
use_debug false
use_bpm 60
load_samples [:drum_heavy_kick, :drum_snare_soft]
# HISS
live_loop :hiss_loop do
sample :vinyl_hiss, amp: 0.5
sleep sample_duration :vinyl_hiss
end
# 2.0 second loop
puts "First drums 2-seconds"
live_loop :drums1 do
8.times do
sample :drum_heavy_kick, rate: 0.9, amp: rrand(2, 5), attack: rrand(0, 0.1), pan: rrand(-1.0, 1.0)
sleep 0.25
end
16.times do
sample :drum_heavy_kick, rate: 0.8, amp: rrand(2, 4), attack: rrand(0, 0.1), pan: rrand(-1.0, 1.0)
sleep 0.125
end
end
puts "second driving drum beat"
live_loop :drums2 do
12.times do
sample :drum_heavy_kick, rate: 0.8, amp: rrand(2, 5), attack: rrand(0, 0.1), pan: rrand(-1.0, 1.0)
sleep 0.5
end
8.times do
sample :drum_heavy_kick, rate: 0.8, amp: rrand(2, 5), attack: rrand(0, 0.1), pan: rrand(-1.0, 1.0)
sleep 0.0625
end
end
puts "drum beats"
live_loop :drums3 do
64.times do
2.times do
sample :drum_cymbal_closed
sleep 0.25
end
sample :drum_snare_hard
sleep 0.25
sample :drum_cymbal_closed
sleep 0.25
end
end
live_loop :drums4, delay: 2 do
sample :drum_bass_hard
sleep 4
sample :bass_dnb_f, release: rrand(1, 2), cutoff_slide: rrand(0, 2), cutoff: rrand(60, 100)
sleep 4
end
puts "Random scratch and bits"
live_loop :drive do
2.times do
2.times do
sample :vinyl_scratch
sleep 0.5
end
8.times do
sample :elec_plip
sleep 0.125
end
sample :bass_dnb_f, release: rrand(1, 2), cutoff_slide: rrand(0, 2), cutoff: rrand(60, 100)
sleep 12
4.times do
sample :elec_plip
sleep 0.0625
end
end
sleep 16
end
puts "synth"
live_loop :synths do
puts "hollow synth"
use_synth :hollow
with_fx :reverb, mix: 0.7 do
live_loop :note1, delay: 4 do
play choose([:D4,:E4]), attack: rrand(2, 15), release: rrand(1, 10), amp: 0.4
sleep rrand(2, 8)
end
live_loop :note2, delay: 6 do
play choose([:Fs4,:G4]), attack: rrand(2, 15), release: rrand(1, 10), amp: 0.3
sleep rrand(4, 12)
end
live_loop :note3, delay: 8 do
play choose([:A4, :Cs5]), attack: rrand(2, 15), release: rrand(1, 10), amp: 0.2
sleep rrand(2, 8)
end
sleep 32
puts "mod_fm synth"
use_synth :mod_fm
with_fx :reverb, mix: 0.7 do
live_loop :note4, delay: 4 do
play choose([:D4,:E4]), attack: rrand(2, 15), release: rrand(1, 10), amp: 0.2
sleep rrand(2, 8)
end
live_loop :note5, delay: 6 do
play choose([:Fs4,:G4]), attack: rrand(2, 15), release: rrand(1, 10), amp: 0.1
sleep rrand(4, 12)
end
live_loop :note6, delay: 8 do
play choose([:A4, :Cs5]), attack: rrand(2, 15), release: rrand(1, 10), amp: 0.1
sleep rrand(4, 8)
end
live_loop :note7, delay: 10 do
play choose([:Es2, :Gs5]), attack: rrand(2, 15), release: rrand(1, 10), amp: 0.1
sleep rrand(4, 12)
end
end
end
sleep 32
end
notes = (scale :e1, :minor_pentatonic, num_octaves: rrand(3,6)).shuffle
live_loop :rerezzed, delay: 8 do
tick_reset
t = 0.0125
sleep t
with_fx :bitcrusher do
s = synth :dsaw, note: :e2, sustain: 16, note_slide: t, release: 1.25
128.times do
control s, note: notes.tick, pan: rrand(-1.0, 1.0), amp: rrand(0.2, 0.4)
sleep 0.125
end
end
sleep 64
end
notes2 = (scale :e1, :minor_pentatonic, num_octaves: rrand(2,5)).shuffle
live_loop :rerezzed2, delay: 24 do
tick_reset
t = 0.0125
sleep t
with_fx :bitcrusher do
s = synth :dsaw, note: :e3, sustain: 16, note_slide: t, release: rrand(0.5, 1.0), amp: 0.2
128.times do
control s, note: notes2.tick, pan: rrand(-1.0, 1.0), amp: rrand(0.3, 0.4)
sleep 0.125
end
end
sleep 64
end