Skip to content

Commit

Permalink
Just added a cool lambda for breakdowns.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesbowkett committed Aug 25, 2008
1 parent 074b215 commit db5489a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion live/db_drum_definition.rb
Expand Up @@ -42,9 +42,10 @@ def note(midi_note_number)
notes << Drum.new(:note => note(midi_note_number),
:when => L{|beat| false},
:number_generator => L{0.5},
:next => L{|queue| queue[queue.size - 1]},
# :number_generator => L{rand},
:next => L{|queue| queue[queue.size - 1]},
# :next => L{|queue| queue[rand(queue.size)]},
# :next => L{|queue| rand < 0.5 ? queue[0] : queue[rand(queue.size)]},
:probabilities => probabilities[midi_note_number] || probabilities[:none])
end
notes
Expand Down

0 comments on commit db5489a

Please sign in to comment.