json-waveform 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/json-waveform +3 -3
- data/json-waveform.gemspec +1 -1
- data/lib/json-waveform/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83938d351b35d92ff6e575264f09bb78a1f88371
|
4
|
+
data.tar.gz: fbc56a07a8090835f63b6839c515f32619e7b9e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2c02e06ce94bf75b535a48954da2fb4ebe578e5db27c709d2e00b50985fec37470a6fc93541c7310b2bd31e0fd322802053c2ede0cc719c11a7375fa494836f
|
7
|
+
data.tar.gz: 33257f3fa1b08ae0c7e271c6c14a24c3321a4e5ff97e92eabe83b07761eaccbcb550c8069c6fff10e5898b0c3065911a6ec533150391b278f722e5b4ec571b6d
|
data/bin/json-waveform
CHANGED
@@ -7,11 +7,11 @@ optparse = OptionParser.new do |o|
|
|
7
7
|
o.banner = "Usage: json-waveform [options] source_audio"
|
8
8
|
o.version = JsonWaveform::VERSION
|
9
9
|
|
10
|
-
o.on("-s", "--samples SAMPLES", "Samples generated from the original file (i.e.: waveform width) -- Default #{JsonWaveform::
|
10
|
+
o.on("-s", "--samples SAMPLES", "Samples generated from the original file (i.e.: waveform width) -- Default #{JsonWaveform::DEFAULT_OPTIONS[:samples]}.") do |samples|
|
11
11
|
options[:samples] = samples.to_i
|
12
12
|
end
|
13
13
|
|
14
|
-
o.on("-A", "--amplitude AMPLITUDE", "Max amplitude of the waveform values-- Default #{JsonWaveform::
|
14
|
+
o.on("-A", "--amplitude AMPLITUDE", "Max amplitude of the waveform values-- Default #{JsonWaveform::DEFAULT_OPTIONS[:amplitude]}.") do |amplitude|
|
15
15
|
options[:amplitude] = amplitude.to_i
|
16
16
|
end
|
17
17
|
|
@@ -19,7 +19,7 @@ optparse = OptionParser.new do |o|
|
|
19
19
|
options[:auto_sample] = msec.to_i
|
20
20
|
end
|
21
21
|
|
22
|
-
o.on("-m", "--method METHOD", "Wave analyzation method (can be 'peak' or 'rms') -- Default '#{JsonWaveform::
|
22
|
+
o.on("-m", "--method METHOD", "Wave analyzation method (can be 'peak' or 'rms') -- Default '#{JsonWaveform::DEFAULT_OPTIONS[:method]}'.") do |method|
|
23
23
|
options[:method] = method.to_sym
|
24
24
|
end
|
25
25
|
|
data/json-waveform.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json-waveform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esteban Pastorino
|
@@ -14,16 +14,16 @@ dependencies:
|
|
14
14
|
name: ruby-audio
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.6.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.6.0
|
27
27
|
description: Generate waveform JSON information from audio files, compatible with
|
28
28
|
http://waveformjs.org/.
|
29
29
|
email:
|