ramekin 0.1.5 → 0.1.6
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 +4 -4
- data/lib/ramekin/legato.rb +8 -0
- data/lib/ramekin/note_aggregator.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 182cd33a7459bc8b4af60cb88a47d426e793402f86301b9e0b94a6f05a1e75c3
|
4
|
+
data.tar.gz: b439d567c1c101dcd4a058a48b811f9038eea87e05976b5d10a37da1b9cabf36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17fb8aa606c3e68cf708a1f6a804eee5c5b1648814126e4db276a9760a28a07d300398af6f7b3f3d4c663469a0cf8e800cd4b6cd0b09ebef6bce80be6f61e97c
|
7
|
+
data.tar.gz: 204de14cb21aa0d45a21589c9cb41650b65ae356cce66678b3bc5420c07f5432c1c46309cff58feff12c4e40aacffe381669907ca3897f6c37e7d33bad84162d
|
data/lib/ramekin/legato.rb
CHANGED
@@ -19,6 +19,8 @@ module Ramekin
|
|
19
19
|
|
20
20
|
def fin
|
21
21
|
(@extensions.last || @note).fin
|
22
|
+
rescue
|
23
|
+
binding.pry
|
22
24
|
end
|
23
25
|
|
24
26
|
def octave_num
|
@@ -128,17 +130,18 @@ module Ramekin
|
|
128
130
|
end
|
129
131
|
|
130
132
|
class CombinedRestEvent < NoteEvent
|
133
|
+
attr_reader :rests
|
131
134
|
def initialize(rests)
|
132
135
|
@rests = rests
|
133
136
|
error! "empty CombinedRestEvent" if rests.empty?
|
134
137
|
end
|
135
138
|
|
136
139
|
def start
|
137
|
-
rests.first.start
|
140
|
+
@rests.first.start
|
138
141
|
end
|
139
142
|
|
140
143
|
def fin
|
141
|
-
rests.last.fin
|
144
|
+
@rests.last.fin
|
142
145
|
end
|
143
146
|
|
144
147
|
def rest?
|