audio_analysis 0.0.0 → 0.0.1
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/audio_analysis.rb +3 -3
- 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: be4f1696cce0f5398d08f905a45a881fb939ce1e746bed8a943a17e5368473b2
|
4
|
+
data.tar.gz: 7960769e3356f04183979c3841a4bf891f5d4df4891a74604268be9054ede8ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca7d64ee01c61dc6da85657f74907de1d42748801319b7042670142d6d63ecbfbb53632b7cb485ec5d01478b067da2d872b5be32c76cd31c8b153339ed04c65b
|
7
|
+
data.tar.gz: 460d3598f041e3527fe1518cc47f66c93e0ff1745d7ff801a5c06a4a973f7e44bd0330e2392c44091e7369f4acae5fe75ae187ad71595443a32a5efc873354c3
|
data/lib/audio_analysis.rb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
class AudioAnalysis
|
2
2
|
def self.find_bpm(file_path)
|
3
|
-
`pip install -r requirements.txt`
|
3
|
+
`pip install -r lib/requirements.txt`
|
4
4
|
bpm = `python3 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 requirements.txt`
|
9
|
+
`pip install -r lib/requirements.txt`
|
10
10
|
`python3 key_analysis.py #{file_path}`
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.analyze(file_path)
|
14
|
-
`pip install -r requirements.txt`
|
14
|
+
`pip install -r lib/requirements.txt`
|
15
15
|
bpm = `python3 bpm_analysis.py #{file_path}`
|
16
16
|
key =`python3 key_analysis.py #{file_path}`
|
17
17
|
{ bpm: bpm, key: key }
|