-
Notifications
You must be signed in to change notification settings - Fork 46
/
yurt.rb
24 lines (19 loc) · 1.2 KB
/
yurt.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 => "live/db_drum_definition.rb",
:mutation => $mutation),
Rhythm.new(:drumfile => "live/harmonic_cycle.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