-
Notifications
You must be signed in to change notification settings - Fork 14
/
a_milli.rb
38 lines (32 loc) · 1.04 KB
/
a_milli.rb
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
# lil wayne - a milli
use_bpm 76
live_loop :wayne do
sample "/PATH/TO/SAMPLE/a_milli_clip.flac", amp: 1.5
sleep 8
end
drum_hash = {
# clap-ish sound
:elec_hi_snare => "----X-------X---",
:drum_snare_soft => "----X-------X---",
:perc_snap => "----X-------X---",
# bass drum
:bd_boom => "X--X--X---X--X--",
# uncomment the below if you want a hi-hat
##| :drum_cymbal_closed => "xXxxXxxXxxXxxXxX",
# uncomment the below if you want random sounds
##| :ambi_lunar_land => "X---------------",
##| :ambi_piano => "X-----O---------",
##| :ambi_glass_hum => "X---------------",
##| :ambi_drone => "X---------------",
##| :ambi_soft_buzz => "X---------O--O--",
}
live_loop :drums do
16.times do |n|
drum_hash.each do |key, value|
sample key if value[n] == "X" # capital 'X' = hard hit
sample key, amp: 0.5, finish: 0.2 if value[n] == "x" # lowercase 'x' = light hit
sample key, pitch: choose([-2, 0, 1, 3]) if value[n] == "O"
end
sleep 0.25
end
end