Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

These files are now lighter-weight, trimmed of excess hackery-fat.

  • Loading branch information...
commit 1979e633aa477d07b99f4146b2cfa4f1fd955c17 1 parent 09c5b63
@gilesbowkett authored
Showing with 1 addition and 59 deletions.
  1. +0 −15 db_drum_definition.rb
  2. +1 −0  lib/archaeopteryx.rb
  3. +0 −44 lib/arkx.rb
View
15 db_drum_definition.rb
@@ -1,18 +1,3 @@
-# 0 Drums
-# 1 Pacific Heights
-# 2 Clarendon (dub)
-# 3 Over-reacted
-# 4 System (Matrix/Futurebound)
-# 5 Call Me
-# 6 Hustlin
-# 7 Feeling Blue (piano track)
-# 8 Mermaids
-# 9 Waves Breaking
-
-$lock_live = true
-$live_channels = [0,8]
-$beat_juggle = true
-
probabilities = {}
probabilities[:none] = [0.0] * 16
View
1  lib/archaeopteryx.rb
@@ -15,6 +15,7 @@
lib/infinite_stream
lib/infinite_beats
lib/feigenbaum
+ lib/metacircular_evaluator
lib/midi/note
lib/midi/clock
View
44 lib/arkx.rb
@@ -7,14 +7,6 @@ def initialize(attributes)
@evil_timer_offset_wtf = attributes[:evil_timer_offset_wtf]
@midi = LiveMIDI.new(:clock => @clock = attributes[:clock], # confusion!!!!!!!!!!
:logging => attributes[:logging] || false)
- # doc ock hackery
- @tap_tempo = TapTempo.new
- @faders = []
- (0..9).each do |number|
- @faders[number] = Fader.new
- @faders[number].midi_channel = 0
- @faders[number].controller_number = number
- end
end
def play(music)
music.each {|note| @midi.play(note)}
@@ -24,32 +16,6 @@ def go
(1..@measures).each do |measure|
@generator.mutate(measure)
(0..(@beats - 1)).each do |beat|
- if [0, 4, 8, 12].include? beat
- @midi.send_controller_message(15, 7, 127) # experimental tap-tempo scheduler
- # this should almost certainly be something like
- # trigger @generator.messages(beat)
- end
- # globals because I wrote this part on the plane - expect refactoring
- if $lock_live
- if $beat_juggle
- chosen = [$live_channels[rand($live_channels.size)]]
- else
- chosen = $live_channels
- end
- (0..9).each do |channel|
- if chosen.include? channel
- @faders[channel].value = 100
- @midi.send_controller_message(@faders[channel].midi_channel,
- @faders[channel].controller_number,
- @faders[channel].value)
- else
- @faders[channel].value = 0
- @midi.send_controller_message(@faders[channel].midi_channel,
- @faders[channel].controller_number,
- @faders[channel].value)
- end
- end
- end
play @generator.notes(beat)
@clock.tick
end
@@ -61,13 +27,3 @@ def go
end
end
end
-
-# there are two or three ways to refactor the tap tempo as far as I can tell.
-
-# 1 pass in a block
-# 2 control-message scheduler object
-# 3 pass in control messages for scheduling
-
-# 4 control message probability matrix
-# 5 control messages *IN* the existing probability matrix
-# trigger @generator.messages(beat)
Please sign in to comment.
Something went wrong with that request. Please try again.