bleything / archaeopteryx forked from gilesbowkett/archaeopteryx

Ruby MIDI DJing/live-coding thing

This URL has Read+Write access

gilesbowkett (author)
Tue Nov 04 07:24:24 -0800 2008
commit  6fec6b97cb7c2ef349072737a738a82aa8de47ae
tree    cc88abf79e7d0111ffe897bb811233d188ad8725
parent  c44a5329739c1900ea3ff3463d0374cfbd57ee4e
archaeopteryx / yurt.rb
100644 25 lines (19 sloc) 1.225 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
# 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