Skip to content

Commit

Permalink
Removes poorly pasted code from transpose (placeholder)
Browse files Browse the repository at this point in the history
  • Loading branch information
beneggett committed Mar 10, 2015
1 parent 47f0a3c commit aeb3de1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
16 changes: 2 additions & 14 deletions lib/music_theory/transpose.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,9 @@ class Transpose

attr_accessor :samples

def initialize(*things_to_flatten)
@samples = []
[*things_to_flatten].each do |group|
group.each_with_index do |value, i|
@samples[i] ||= 0
@samples[i] += value
end
end
max = @samples.map {|s| s.abs }.max
multiplier = 1.0 / max
@samples.map!{ |s| multiplier * s }
def initialize
# Add code that transposes up or down x octaves
end




end
end
2 changes: 1 addition & 1 deletion lib/music_theory/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module MusicTheory
VERSION = "0.2.0"
VERSION = "0.2.1"
end

0 comments on commit aeb3de1

Please sign in to comment.