music_theory 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b63ead96b6711b0b9bca6a540d2546b36558405c
4
- data.tar.gz: 4bbc82906a867e4d3fad79c73818323acbb6d553
3
+ metadata.gz: fbcc50c0ee55faff0c747fa2312e37fdf91690fd
4
+ data.tar.gz: 41bf16f428f46e92f9c98671a3e0c178b425a9b1
5
5
  SHA512:
6
- metadata.gz: 8d692ee0612257e939f392d14715644a89af698f52d2fb58b1fb498ba7c0f6c4bc301745a2b505f82aeb1dbf1aeb7b45c8cc6e7773aab33c1a21525ebfb80c97
7
- data.tar.gz: 0f8be28c654a07054cdf58adcc9874d2557125ab1c392a3f6945d5538e04fe2642a563a1798dd254e7ce0645413596736f241d2fe83747f6c63cd48c7ebc6211
6
+ metadata.gz: 8b0789452cd2456771e98936218cfffd9e068928fc74a23239d1228638b7bff90cf1b200a6bdd904325276323ec9fda4e0c80bf8e905b27f6b7b09e72d2ceda4
7
+ data.tar.gz: f485e44ce864a1d2ca1cf92b5aba5f45514c246b4f20db74919fafe382e462a35af7c576859a2f67266dbf68bc6ba333fadecf619608c47b04c71af9b7769e92
@@ -6,21 +6,9 @@ module MusicTheory
6
6
 
7
7
  attr_accessor :samples
8
8
 
9
- def initialize(*things_to_flatten)
10
- @samples = []
11
- [*things_to_flatten].each do |group|
12
- group.each_with_index do |value, i|
13
- @samples[i] ||= 0
14
- @samples[i] += value
15
- end
16
- end
17
- max = @samples.map {|s| s.abs }.max
18
- multiplier = 1.0 / max
19
- @samples.map!{ |s| multiplier * s }
9
+ def initialize
10
+ # Add code that transposes up or down x octaves
20
11
  end
21
12
 
22
-
23
-
24
-
25
13
  end
26
14
  end
@@ -1,3 +1,3 @@
1
1
  module MusicTheory
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: music_theory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett