Permalink
Browse files

k must be less than n

  • Loading branch information...
1 parent 3b7d85e commit e0afa69ff9426d78ae3d998294551deaaf74d253 Jeremy Voorhis committed Nov 16, 2008
Showing with 1 addition and 7 deletions.
  1. +1 −7 examples/euclid.rb
View
8 examples/euclid.rb
@@ -8,6 +8,7 @@
module Euclid
module_function
def euclid(k, n)
+ raise ArgumentError, "`k' must be less than `n'" unless k < n
bjorklund Array.new(k, [true]) + Array.new(n - k, [false])
end
@@ -42,13 +43,6 @@ def interleave(list1, list2)
end
end
-def cresc(factor, score)
- group(score,
- :velocity => env { |v0, ph|
- v1 = (v0 + ph * ((v0 * factor) - v0)).round # Linear interpolation
- v1.clip(0..127) })
-end
-
def kick(*args)
n(35, *args)
end

0 comments on commit e0afa69

Please sign in to comment.