audio_analysis 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/audio_analysis.rb +7 -13
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c6ee2bf1738a0fefba9106383ac99014910171a22d0e34f86b72a201a3d3ae5
4
- data.tar.gz: e5d37d7b4215d3772ce5c46b35e3424134bcdf1f6cf59896eb0380364a7031f0
3
+ metadata.gz: 0a1c982a664f5cea0335d76a00b15057db67c92bbdf3a25f4972b201defb7409
4
+ data.tar.gz: 98884a8ab4ebc3b098e961b9c58f1261fa1d8f2df1a541d5491d1114765c0f61
5
5
  SHA512:
6
- metadata.gz: fce4fab5dc03e927721825c46999cb0d1e181ad4cd82086d917a69aeb577ce491bbaf4c3310d9849d8665c581059a355e3746ba3095a23b438489da233f3ec56
7
- data.tar.gz: 3494f50f35eb17713fc752760a3625d58bdb0d48a94e350a3bfbc1cc939f667da73c4b0ac45fa02f37841371d5ab7e93d4486e721fbbdb2ccdaaf6a9dcef1f11
6
+ metadata.gz: 8fb0f096e78c10d32bb822e51ddd6bccd9e12874580c6a875056836f0f55d116551da7799bb69f4b8bc2b6cdc709b2e3bdd963ca233a60fca010d9858210dc6a
7
+ data.tar.gz: 80df53e6a53b1d4a74d3ae23469774994caaa01f2ff5d52e5104175a39c9ee1973b731f838ea64f580c6dddca419d3f5ee09f2718f38a452f66f718ca26e885d
@@ -1,25 +1,19 @@
1
1
  class AudioAnalysis
2
2
  def self.find_bpm(file_path)
3
- `pip install -r #{gem_path}/lib/python_analysis/requirements.txt`
4
- bpm = `python3 #{gem_path}/lib/python_analysis/bpm_analysis.py #{file_path}`
3
+ `pip install -r lib/python_analysis/requirements.txt`
4
+ bpm = `python3 lib/python_analysis/bpm_analysis.py #{file_path}`
5
5
  bpm.to_f
6
6
  end
7
7
 
8
8
  def self.find_key(file_path)
9
- `pip install -r #{gem_path}/lib/python_analysis/requirements.txt`
10
- `python3 #{gem_path}/lib/python_analysis/key_analysis.py #{file_path}`
9
+ `pip install -r lib/python_analysis/requirements.txt`
10
+ `python3 lib/python_analysis/key_analysis.py #{file_path}`
11
11
  end
12
12
 
13
13
  def self.analyze(file_path)
14
- `pip install -r #{gem_path}/lib/python_analysis/requirements.txt`
15
- bpm = `python3 #{gem_path}/lib/python_analysis/bpm_analysis.py #{file_path}`
16
- key =`python3 #{gem_path}/lib/python_analysis/key_analysis.py #{file_path}`
14
+ `pip install -r lib/python_analysis/requirements.txt`
15
+ bpm = `python3 lib/python_analysis/bpm_analysis.py #{file_path}`
16
+ key =`python3 lib/python_analysis/key_analysis.py #{file_path}`
17
17
  { bpm: bpm, key: key }
18
18
  end
19
-
20
- private
21
-
22
- def self.gem_path
23
- Gem.datadir("audio_analysis")
24
- end
25
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audio_analysis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Indigo Tech Tutorials '