Pachelbel 1.2.2 → 1.2.3
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/project/Pachelbel.rb +6 -3
- 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: dc981169af1c38a8fc37f1637b0015e7d6dc668e
|
4
|
+
data.tar.gz: 17631bac320f9f33f5954aae41c67b16c8ec52b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4163fecf2f5678c5fd02c27e35c3768da69bde62400642105b6287a0c7bd86a732a73f33b5ed6376023b03bb1cda7a75800e53661146b7648f43bceba1cd288b
|
7
|
+
data.tar.gz: 27bc1612bc04e1227846eed3bd57a4c192e77cd93de0be2270803b81b9af11aa29704c9df0323ef15c8549f6b54ed990e2b6190a07b2537deca37c1f66f491c6
|
data/lib/project/Pachelbel.rb
CHANGED
@@ -88,7 +88,8 @@ module Pachelbel
|
|
88
88
|
def createGain
|
89
89
|
object = GainNode.allocate
|
90
90
|
object._audio_context = self
|
91
|
-
|
91
|
+
js_method = UIDevice.currentDevice.systemVersion[0] == '6' ? 'createGainNode' : 'createGain'
|
92
|
+
object._index = run_js("audio_nodes.push( audio_context.#{js_method}() );").to_i - 1
|
92
93
|
object
|
93
94
|
end
|
94
95
|
end
|
@@ -168,11 +169,13 @@ module Pachelbel
|
|
168
169
|
# API Methods
|
169
170
|
|
170
171
|
def start(time)
|
171
|
-
|
172
|
+
js_method = UIDevice.currentDevice.systemVersion[0] == '6' ? 'noteOn' : 'start'
|
173
|
+
run_js("#{_js_snippet}.#{js_method}(#{time});")
|
172
174
|
end
|
173
175
|
|
174
176
|
def stop(time)
|
175
|
-
|
177
|
+
js_method = UIDevice.currentDevice.systemVersion[0] == '6' ? 'noteOff' : 'stop'
|
178
|
+
run_js("#{_js_snippet}.#{js_method}(#{time});")
|
176
179
|
end
|
177
180
|
end
|
178
181
|
end
|