vocal_tract_length 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1807e5f276002fa0b457c2097660cc3e842856be
4
- data.tar.gz: e065811735ab6fcaf704942a9e70e0be484d14e3
3
+ metadata.gz: 45fd5b7a018dcba0e8829b32683c011ff10d651f
4
+ data.tar.gz: 374e6309c364c9632b51c44c9777df9b8a97872d
5
5
  SHA512:
6
- metadata.gz: a6abf0acca943104437bd2d9ce179feed3f87eca7d6600c3070a8df70cd95199400acf6d084d5a8ca4e8f01ee0a8703f06ea333e4c649dc4d679220f37bfa692
7
- data.tar.gz: 0df030b9089c01e570e5126bc6c19ce734f2c951e015fbce5f77d5f09afc4dea87f2c673929791f16336743a624870658ce06d82816ca6ad9aa6f20c28ae61a6
6
+ metadata.gz: d340839bf312bacfbc3e6ffdb1ce2c81ea9e2febbe1ab26116789cc28b171322c2665556a6d1d5f4e9310f52510f703977e73f6b0c1a340e7cc8298292777933
7
+ data.tar.gz: 9a4aee038297f13c49963c1dd37dd47a61f339a0a5a87336e158744492aefe81564c9fecc790b268e21dcf1748552945b70d7feb0d387ff5bf957807ad81226d
@@ -29,7 +29,6 @@
29
29
  startRecordingButton = document.querySelector("[data-action=startRecording]");
30
30
  startRecordingButton.disabled = false;
31
31
  startRecordingButton.addEventListener("click", startRecording, false);
32
- console.log("bound");
33
32
  }
34
33
 
35
34
  function startRecording() {
@@ -41,10 +40,10 @@
41
40
  }
42
41
 
43
42
  function stopRecording(button) {
44
- button.innerHTML = "Record"
45
- button.disabled = false;
46
43
  recorder && recorder.stop();
47
44
 
45
+ document.querySelector("[data-action=startRecording]").innerHTML =
46
+ "Calculating...";
48
47
  recorder.exportWAV(sendWAV);
49
48
  }
50
49
 
@@ -58,9 +57,12 @@
58
57
 
59
58
  function setFormant1Result(formant1Text) {
60
59
  formant1 = parseFloat(formant1Text);
60
+ document.querySelector("[data-action=startRecording]").disabled = false;
61
+ document.querySelector("[data-action=startRecording]").innerHTML =
62
+ "Record";
63
+ document.querySelector("[data-id=results]").style.display = 'initial';
61
64
  document.querySelector("[data-id=formant1]").innerHTML = roundTo(formant1, 0);
62
65
  document.querySelector("[data-id=vocalTractLength]").innerHTML = roundTo(calculateVocalTractLength(formant1), 1);
63
- document.querySelector("[data-id=results]").style.display = 'initial';
64
66
  }
65
67
 
66
68
  function sendWAV(blob) {
@@ -1,3 +1,3 @@
1
1
  module VocalTractLength
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vocal_tract_length
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Holder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-18 00:00:00.000000000 Z
11
+ date: 2014-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler