Skip to content

Commit 705524b

Browse files
committed
Add time machine example
1 parent 5547167 commit 705524b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Coded by Sam Aaron
2+
3+
live_loop :time do |idx|
4+
synth :tb303, release: 8, note: :e1, cutoff: (range 90, 60, -10)[idx]
5+
sleep 8
6+
idx += 1
7+
end
8+
9+
live_loop :machine do |idx|
10+
sample :loop_garzul, rate: (knit 1, 3, -1, 1)[idx]
11+
sleep 8
12+
idx += 1
13+
end
14+
15+
live_loop :vortex, auto_cue: false do |idx|
16+
use_synth [:pulse, :beep].choose
17+
sleep 0.125 / 2
18+
play scale(:e1, :minor_pentatonic)[idx], attack: 0.125, release: 0, amp: 2, cutoff: (ring 70, 90, 100, 130)[idx]
19+
sleep 0.125 / 2
20+
idx += 1
21+
end
22+
23+
live_loop :moon_bass, auto_cue: false do |idx|
24+
sample :bd_haus, amp: 1.5
25+
sleep 0.5
26+
idx += 1
27+
end

0 commit comments

Comments
 (0)