-
Notifications
You must be signed in to change notification settings - Fork 46
/
temple.rb
24 lines (19 loc) · 1.16 KB
/
temple.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
# cycle through the circle of fifths
require 'lib/archaeopteryx'
$clock = Clock.new(30)
$mutation = L{|measure| 0 == (measure - 1) % 2}
$measures = 4
@loop = Arkx.new(:clock => $clock, # rename Arkx to Loop
:measures => $measures,
:logging => false,
:evil_timer_offset_wtf => 0.2,
:generator => Mix.new(:rhythms => [Rhythm.new(:drumfile => "harmonic_cycle.rb",
:mutation => $mutation),
Rhythm.new(:drumfile => "xanadu.rb",
:mutation => L{|measure| 0 == (measure - 1) % 16}),
Rhythm.new(:drumfile => "forest_sounds.rb",
:mutation => L{|measure| 0 == (measure - 1) % 16}),
Rhythm.new(:drumfile => "ethniq.rb",
:mutation => L{|measure| 0 == (measure - 1) % 16})]))
@loop.go
# also, play random atmospheric samples