music_detector 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 351f70dc693ce76ab58d592cad6543f0c657918e
4
+ data.tar.gz: ad85f66c2b598fa8692d42436b352f22234470dc
5
+ SHA512:
6
+ metadata.gz: 36662b050ed8615d05196a23621d65df77aca65a7c80eb730431189c050078cfcac90640b9f03f580c5f68e9e59094ae24000ae1194d3de09a802c6f73fd147a
7
+ data.tar.gz: e25d5ed2c4dfadbbc694145c0e0085e0db9b8325926911d745e317c36a2ea42741887dd7c89f1a5de2d2f84145a1c11144208f65e658d5cdf89b833e9309f9ec
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.2.4
5
+ before_install: gem install bundler -v 1.14.3
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at sobatarooo@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in music_detector.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 sobataro
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # MusicDetector
2
+
3
+ A music detector written in Ruby.
4
+
5
+
6
+ ## System Requirements
7
+
8
+ - fftw-devel
9
+ - can be installed by `yum install fftw-devel` on RHEL-like systems
10
+ - can be installed by `brew install fftw` on OS X
11
+
12
+
13
+ ## Installation
14
+
15
+ Add this line to your application's Gemfile:
16
+
17
+ ```ruby
18
+ gem 'music_detector'
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ $ bundle
24
+
25
+ Or install it yourself as:
26
+
27
+ $ gem install music_detector
28
+
29
+
30
+ ## Usage
31
+
32
+ TODO: Write usage instructions here
33
+
34
+
35
+ ## Development
36
+
37
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
38
+
39
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
40
+
41
+
42
+ ## Contributing
43
+
44
+ Bug reports and pull requests are welcome on GitHub at https://github.com/sobataro/music_detector. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
45
+
46
+
47
+ ## License
48
+
49
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
50
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "music_detector"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,16 @@
1
+ module MusicDetector
2
+ class Configuration
3
+ attr_reader :a, :temperament_range, :in_tune_cents, :out_of_tune_cents
4
+
5
+ # @param [Numeric] a base A4 frequency of the equal temperament (typically 440)
6
+ # @param [Range] temperament_range range of the equal temperament used to extract feature vector
7
+ # @param [Float] in_tune_cents maximum frequency difference between an in-tune note and the equal temperament
8
+ # @param [Float] out_of_tune_ratio minimum frequency difference between an out-of-tune note and the equal temperament
9
+ def initialize(a: 440, temperament_range: -12..24, in_tune_cents: 10, out_of_tune_cents: 30)
10
+ @a = a
11
+ @temperament_range = temperament_range
12
+ @in_tune_cents = in_tune_cents
13
+ @out_of_tune_cents = out_of_tune_cents
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,106 @@
1
+ require 'wavefile'
2
+ require 'numru/fftw3'
3
+
4
+ module MusicDetector
5
+ class FeatureVectorExtractor
6
+
7
+ attr_reader :config
8
+
9
+ # @param [MusicDetector::Configuration] config config to process music file
10
+ def initialize(config)
11
+ @config = config
12
+ end
13
+
14
+ # @param [String] file path of the input audio file
15
+ # @param [Float] seektime seek time in the audio file (in seconds)
16
+ # @param [Float] duration duration in the audio file (in seconds)
17
+ # @return [NArray<Float>] extracted feature vector
18
+ def extract_from(file:, seektime:, duration:)
19
+ # read audio file
20
+ wave, samplerate = read_audio_file(file: file, seektime: seektime, duration: duration)
21
+
22
+ # do fft and make frequency spectrum
23
+ length = wave.length / 2
24
+ spectrum = NumRu::FFTW3.fft(wave, NumRu::FFTW3::FORWARD).abs[0...length]
25
+ frequencies = NArray.to_na((0...length).map { |i| i.to_f / length * samplerate / 2 }) # frequencies of each element in spectrum
26
+
27
+ # bandpath filter (to faster computation)
28
+ spectrum, frequencies = band_path_filter(spectrum: spectrum, frequencies: frequencies)
29
+
30
+ # prepare for analysis
31
+ log_frequencies = NMath::log(frequencies)
32
+ log_temperament = NMath::log(equal_temperament)
33
+
34
+ log_bin_freq_half_bandwidth = (log_temperament[1] - log_temperament[0]) / 2.0
35
+ log_in_tune_freq_threshold = log_bin_freq_half_bandwidth * @config.in_tune_cents / 100.0
36
+ log_out_of_tune_freq_threshold = log_bin_freq_half_bandwidth * @config.out_of_tune_cents / 100.0
37
+
38
+ log_temperament.map do |log_bin_center_freq|
39
+ # indices of the target bin (for spectrum)
40
+ log_bin_indices = (log_frequencies - log_bin_center_freq).abs < log_bin_freq_half_bandwidth
41
+
42
+ # extract the target bin
43
+ target_log_frequencies = log_frequencies[log_bin_indices]
44
+ target_spectrum = spectrum[log_bin_indices]
45
+
46
+ # calc ratio between in-tune and out-of-tune powers
47
+ target_in_tune_indices = (target_log_frequencies - log_bin_center_freq).abs <= log_in_tune_freq_threshold
48
+ target_out_of_tune_indices = (target_log_frequencies - log_bin_center_freq).abs > log_out_of_tune_freq_threshold
49
+
50
+ in_tune_power = target_spectrum[target_in_tune_indices].mean
51
+ out_of_tune_power = target_spectrum[target_out_of_tune_indices].mean
52
+
53
+ in_tune_power / out_of_tune_power
54
+ end.sort.reverse
55
+ end
56
+
57
+ private
58
+
59
+ def read_audio_file(file:, seektime:, duration:)
60
+ mono_wave = nil
61
+ samplerate = nil
62
+
63
+ WaveFile::Reader.new(file) do |sound|
64
+ samplerate = sound.format.sample_rate
65
+ channels = sound.format.channels
66
+
67
+ # seek
68
+ sound.read((seektime * samplerate).round)
69
+
70
+ # read
71
+ sample_count = (duration * samplerate).round
72
+ mono_wave = NArray.sint(sample_count)
73
+
74
+ sound.read(sample_count).samples.each.with_index do |sample, i|
75
+ case sample
76
+ when Array
77
+ mono_wave[i] = sample.inject(&:+) / channels # normalize to monoral
78
+ mono_wave[i] *= (2 ** (bits_per_sample - 1)) if Float === sample.first
79
+ when Fixnum
80
+ mono_wave[i] = sample
81
+ when Float
82
+ mono_wave[i] = sample * (2 ** (bits_per_sample - 1))
83
+ else
84
+ raise StandardError("unsupported file: #{file}")
85
+ end
86
+ end
87
+ end
88
+
89
+ [mono_wave, samplerate]
90
+ end
91
+
92
+ def band_path_filter(spectrum:, frequencies:)
93
+ hpf_freq = @config.a * 2 ** ((@config.temperament_range.first - 1) / 12.0)
94
+ lpf_freq = @config.a * 2 ** ((@config.temperament_range.last + 1) / 12.0)
95
+
96
+ bpf_indices = (hpf_freq < frequencies) * (frequencies < lpf_freq)
97
+ spectrum = spectrum[bpf_indices]
98
+ frequencies = frequencies[bpf_indices]
99
+ [spectrum, frequencies]
100
+ end
101
+
102
+ def equal_temperament
103
+ NArray.to_na(@config.temperament_range.map { |i| @config.a * 2 ** (i / 12.0) })
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,89 @@
1
+ require 'narray'
2
+
3
+ module MusicDetector
4
+
5
+ # y = X * b + err
6
+ class MultipleLinearRegression
7
+ NEGATIVE = -1
8
+ POSITIVE = 1
9
+
10
+ attr_accessor :b
11
+
12
+ # @param [NArray<Float>] negative_example_fvs feature vectors of negative examples
13
+ # @param [NArray<Float>] positive_example_fvs feature vectors of positive examples
14
+ # @return [MultipleLinearRegression] model trained by given examples
15
+ # FIXME: change parameters to:
16
+ # - a matrix of example fvs
17
+ # - a vector of labels of the matrix
18
+ def self.train_by(negative_example_fvs:, positive_example_fvs:)
19
+ model = MultipleLinearRegression.new
20
+
21
+ negative_count = negative_example_fvs.count
22
+ positive_count = positive_example_fvs.count
23
+ raise RuntimeError('give one or more negative examples') if negative_count == 0
24
+ raise RuntimeError('give one or more positive examples') if positive_count == 0
25
+
26
+ fv_length = negative_example_fvs.first.total
27
+ negative_example_fvs.each { |fv| raise RuntimeError if fv_length != fv.total }
28
+ positive_example_fvs.each { |fv| raise RuntimeError if fv_length != fv.total }
29
+
30
+ # prepare matrix X and vector y
31
+ x = NMatrix.float(fv_length + 1, negative_count + positive_count)
32
+ y = NVector.float(negative_count + positive_count)
33
+
34
+ x[0, true] = NVector.int(negative_count + positive_count).fill(1)
35
+ negative_example_fvs.each.with_index do |fv, i|
36
+ x[1..fv_length, i] = fv
37
+ y[i] = NEGATIVE
38
+ end
39
+ positive_example_fvs.each.with_index do |fv, i|
40
+ x[1..fv_length, negative_count + i] = fv
41
+ y[negative_count + i] = POSITIVE
42
+ end
43
+
44
+ # estimate parameters
45
+ model.b = (x.transpose * x).inverse * x.transpose * y
46
+
47
+ model
48
+ end
49
+
50
+ def self.import_from(file_path)
51
+ model = MultipleLinearRegression.new
52
+
53
+ lines = File.read(file_path).each_line.to_a
54
+
55
+ # skip configurations
56
+ lines.shift
57
+
58
+ # vector b
59
+ b = lines.first.chomp.split(',').map { |e| e.to_f }
60
+ model.b = NVector[*b]
61
+
62
+ model
63
+ end
64
+
65
+ # @param [NArray]
66
+ def estimate(input)
67
+ raise RuntimeError('the form of the input is differ from trained model') if @b.total - 1 != input.shape[0]
68
+
69
+ x = NMatrix.float(input.shape[0] + 1, input.shape[1])
70
+ (input.shape[1]).times do |i|
71
+ x[0, i] = 1.0
72
+ x[1..(input.shape[0]), i] = input[true, i].flatten
73
+ end
74
+ x * @b
75
+ end
76
+
77
+ def export_to(file_path, config:)
78
+ File.open(file_path, 'w+') do |file|
79
+ file.puts(config.inspect)
80
+ file.puts(b.to_a.join(','))
81
+ end
82
+ end
83
+
84
+ private
85
+
86
+ def initialize
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,3 @@
1
+ module MusicDetector
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,6 @@
1
+ module MusicDetector
2
+ require "music_detector/version"
3
+ require "music_detector/feature_vector_extractor"
4
+ require "music_detector/multiple_linear_regression"
5
+ require "music_detector/configuration"
6
+ end
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'music_detector/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "music_detector"
8
+ spec.version = MusicDetector::VERSION
9
+ spec.authors = ["sobataro"]
10
+ spec.email = ["sobatarooo@gmail.com"]
11
+
12
+ spec.summary = %q{music detector}
13
+ spec.description = %q{detects music on wave (.wav) file}
14
+ spec.homepage = "https://github.com/sobataro/ruby-music-detector"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against " \
23
+ # "public gem pushes."
24
+ # end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features|examples)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_runtime_dependency 'wavefile', '~> 0.8.1'
34
+ spec.add_runtime_dependency 'ruby-fftw3', '~> 1.0', '>= 1.0.2'
35
+
36
+ spec.add_development_dependency "bundler", "~> 1.14"
37
+ spec.add_development_dependency "rake", "~> 10.0"
38
+ spec.add_development_dependency "rspec", "~> 3.0"
39
+ end
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: music_detector
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - sobataro
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-02-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: wavefile
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.8.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.8.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: ruby-fftw3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 1.0.2
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '1.0'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 1.0.2
47
+ - !ruby/object:Gem::Dependency
48
+ name: bundler
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.14'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.14'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rake
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '10.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '10.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rspec
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '3.0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '3.0'
89
+ description: detects music on wave (.wav) file
90
+ email:
91
+ - sobatarooo@gmail.com
92
+ executables: []
93
+ extensions: []
94
+ extra_rdoc_files: []
95
+ files:
96
+ - ".gitignore"
97
+ - ".rspec"
98
+ - ".travis.yml"
99
+ - CODE_OF_CONDUCT.md
100
+ - Gemfile
101
+ - LICENSE.txt
102
+ - README.md
103
+ - Rakefile
104
+ - bin/console
105
+ - bin/setup
106
+ - lib/music_detector.rb
107
+ - lib/music_detector/configuration.rb
108
+ - lib/music_detector/feature_vector_extractor.rb
109
+ - lib/music_detector/multiple_linear_regression.rb
110
+ - lib/music_detector/version.rb
111
+ - music_detector.gemspec
112
+ homepage: https://github.com/sobataro/ruby-music-detector
113
+ licenses:
114
+ - MIT
115
+ metadata: {}
116
+ post_install_message:
117
+ rdoc_options: []
118
+ require_paths:
119
+ - lib
120
+ required_ruby_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ requirements: []
131
+ rubyforge_project:
132
+ rubygems_version: 2.4.6
133
+ signing_key:
134
+ specification_version: 4
135
+ summary: music detector
136
+ test_files: []