motion-music 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motion-music/version.rb +1 -1
- data/lib/rb-music/note.rb +1 -1
- data/lib/rb-music/note_set.rb +5 -0
- data/lib/rb-music/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72ef7ca2c26436eddbd94b5d6ccc91ec0bf6242b
|
4
|
+
data.tar.gz: 88d1ea6e15640ac14252df89caf79c7b4310dcfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3327e53ba9376ceffbbe52dd7387e1de4a78308a4817ea48d0b43d43e37040471e724efbab42f497349224681da28beaba76f6a7493bcadb84de56a249385b23
|
7
|
+
data.tar.gz: 9c516766820a936eb443acb4072e8cd103c8761e4f147679fad22144e28a7090ec3a6d9e384bea1c7ab8b41e8a9caefc2a6d2cb65a491f7d60157587edd038f8
|
data/lib/motion-music/version.rb
CHANGED
data/lib/rb-music/note.rb
CHANGED
data/lib/rb-music/note_set.rb
CHANGED
@@ -38,6 +38,7 @@ module RBMusic
|
|
38
38
|
def <<(other)
|
39
39
|
@notes << other
|
40
40
|
end
|
41
|
+
alias_method :push, :<<
|
41
42
|
|
42
43
|
def map(&block)
|
43
44
|
@notes.map(&block)
|
@@ -48,6 +49,10 @@ module RBMusic
|
|
48
49
|
end
|
49
50
|
alias_method :eql?, :==
|
50
51
|
|
52
|
+
def size
|
53
|
+
@notes.size
|
54
|
+
end
|
55
|
+
|
51
56
|
def add(that)
|
52
57
|
NoteSet.new(@notes.map { |note| note.add(that) })
|
53
58
|
end
|
data/lib/rb-music/version.rb
CHANGED