-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSynth Riffs.rb
More file actions
65 lines (58 loc) · 1.42 KB
/
Copy pathSynth Riffs.rb
File metadata and controls
65 lines (58 loc) · 1.42 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
# Timbral possibilities
#live_loop :timbre do
# use_synth (ring :tb303, :blade, :prophet, :saw, :beep, :tri).tick
#play :e2, attack: 0, release: 0.5, cutoff: 100
#sleep 0.5
#end
# Melodic Composition
# live_loop :riff do
# use_synth :prophet
# riff = (ring :e3, :e3, :r, :g3, :r, :r, :r, :a3)
# play riff.tick, release: 0.5, cutoff: 80
# sleep 0.25
# end
# AUTO MELODY
#live_loop :random_riff do
# use_synth :tb303
#with_fx :slicer, phase: 3.33, wave: 1, mix: 1 do
# use_random_seed 33
#notes = (scale :e3, :minor_pentatonic).shuffle
#play notes.tick, release: 1, cutoff: 80
#sleep 0.25
#end
#end
# AUTO RHYTHM
# live_loop :random_riff do
# use_synth :dsaw
# use_random_seed 30
# notes = (scale :e3, :minor_pentatonic).shuffle
# 16.times do
# play notes.tick, release: 0.2, cutoff: 90 if one_in(2)
# sleep 0.125
# end
# end
# BRINGING IT ALL TOGETHER
use_debug false
live_loop :random_riff do
# uncomment and hit Run to bring in:
# synth :blade, note: :e4, release: 4, cutoff: 100, amp: 1.5
use_synth :dsaw
use_random_seed 30030
notes = (scale :e3, :minor_pentatonic, num_octaves: 2).shuffle.take(8)
8.times do
play notes.tick, release: rand(0.5),
cutoff: rrand(60, 130) if one_in(2)
sleep 0.125
end
end
live_loop :drums do
use_random_seed 500
16.times do
sample :bd_haus, rate: 2, cutoff: 110 if rand < 0.35
sleep 0.125
end
end
live_loop :bd do
sample :bd_haus, cutoff: 100, amp: 3
sleep 0.5
end