plant-sirens 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ begin
7
7
  gem.files.include %w(ext/sirens/extconf.rb ext/sirens/sirens.cpp)
8
8
  gem.name = "sirens"
9
9
  gem.add_dependency('rice', '>= 1.0.2')
10
- gem.summary = "Ruby gem that implements Sirens, a library for segmentation, indexing, and retrieval of environmental and natural sounds."
10
+ gem.summary = "Ruby gem that for the Sirens library."
11
11
  gem.description = "Ruby gem that implements Sirens, a library for segmentation, indexing, and retrieval of environmental and natural sounds."
12
12
  gem.email = "bmechtley+github@gmail.com"
13
13
  gem.homepage = "http://github.com/plant/sirens-ruby"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.1.0
Binary file
@@ -9,10 +9,9 @@ s.open('sound.wav')
9
9
  l = Loudness.new
10
10
  ss = SpectralSparsity.new
11
11
  ts = TemporalSparsity.new
12
- ts.windowSize = 50
13
12
 
14
13
  [l, ss, ts].each do |f|
15
- f.historySize = s.frames
14
+ f.maxHistorySize = s.frames
16
15
  end
17
16
 
18
17
  s.sampleFeatures = [l, ts]
@@ -14,6 +14,8 @@ $CPPFLAGS << " #{ENV['CPPFLAGS']}"
14
14
  $LDFLAGS << " #{ENV['LDFLAGS']}"
15
15
  $CFLAGS << " #{ENV['CFLAGS']} -D__OS_MACOSX__"
16
16
 
17
+ have_library('c')
18
+ have_library('stdc++')
17
19
  have_library('sirens')
18
20
  have_library('fftw3')
19
21
 
@@ -85,10 +85,8 @@ extern "C" void Init_sirens() {
85
85
  .define_method("saveFeaturesCSV", &Sound::saveFeaturesCSV)
86
86
  .define_method("spectralFeatures", &Sound::getSpectralFeatures)
87
87
  .define_method("spectralFeatures=", &Sound::setSpectralFeatures)
88
- .define_method("spectralFeatures[]", &Sound::getSpectralFeatureAt)
89
88
  .define_method("sampleFeatures", &Sound::getSampleFeatures)
90
- .define_method("sampleFeatures=", &Sound::setSampleFeatures)
91
- .define_method("sampleFeatures[]", &Sound::getSampleFeatureAt);
89
+ .define_method("sampleFeatures=", &Sound::setSampleFeatures);
92
90
 
93
91
  Data_Type<Feature> rb_cFeature =
94
92
  define_class_under<Feature>(rb_mSirens, "Feature")
@@ -96,8 +94,8 @@ extern "C" void Init_sirens() {
96
94
  .define_method("to_s", &Feature::toString)
97
95
  .define_method("history", &Feature::getHistory)
98
96
  .define_method("history[]", &Feature::getHistoryFrame)
99
- .define_method("historySize", &Feature::getHistorySize)
100
- .define_method("historySize=", &Feature::setHistorySize)
97
+ .define_method("maxHistorySize", &Feature::getMaxHistorySize)
98
+ .define_method("maxHistorySize=", &Feature::setMaxHistorySize)
101
99
  .define_method("value", &Feature::getValue);
102
100
 
103
101
  // rb_mFeature = define_module("Feature");
data/sirens.gemspec ADDED
@@ -0,0 +1,56 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{sirens}
5
+ s.version = "0.1.0"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Brandon Mechtley"]
9
+ s.date = %q{2009-07-10}
10
+ s.description = %q{Ruby gem that implements Sirens, a library for segmentation, indexing, and retrieval of environmental and natural sounds.}
11
+ s.email = %q{bmechtley+github@gmail.com}
12
+ s.extensions = ["ext/sirens/extconf.rb"]
13
+ s.extra_rdoc_files = [
14
+ "LICENSE",
15
+ "README.markdown"
16
+ ]
17
+ s.files = [
18
+ "LICENSE",
19
+ "README.markdown",
20
+ "Rakefile",
21
+ "VERSION",
22
+ "examples/sound.wav",
23
+ "examples/three_features.rb",
24
+ "ext/sirens/extconf.rb",
25
+ "ext/sirens/extconf.rb",
26
+ "ext/sirens/sirens.cpp",
27
+ "ext/sirens/sirens.cpp",
28
+ "sirens.gemspec",
29
+ "test/sirens/sirens_test.rb",
30
+ "test/sirens/test.wav",
31
+ "test/sirens/test_helper.rb"
32
+ ]
33
+ s.homepage = %q{http://github.com/plant/sirens-ruby}
34
+ s.rdoc_options = ["--charset=UTF-8"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = %q{1.3.3}
37
+ s.summary = %q{Ruby gem that for the Sirens library.}
38
+ s.test_files = [
39
+ "test/sirens/sirens_test.rb",
40
+ "test/sirens/test_helper.rb",
41
+ "examples/three_features.rb"
42
+ ]
43
+
44
+ if s.respond_to? :specification_version then
45
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
+ s.specification_version = 3
47
+
48
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
49
+ s.add_runtime_dependency(%q<rice>, [">= 1.0.2"])
50
+ else
51
+ s.add_dependency(%q<rice>, [">= 1.0.2"])
52
+ end
53
+ else
54
+ s.add_dependency(%q<rice>, [">= 1.0.2"])
55
+ end
56
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plant-sirens
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mechtley
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-09 00:00:00 -07:00
12
+ date: 2009-07-10 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -36,8 +36,11 @@ files:
36
36
  - README.markdown
37
37
  - Rakefile
38
38
  - VERSION
39
+ - examples/sound.wav
40
+ - examples/three_features.rb
39
41
  - ext/sirens/extconf.rb
40
42
  - ext/sirens/sirens.cpp
43
+ - sirens.gemspec
41
44
  - test/sirens/sirens_test.rb
42
45
  - test/sirens/test.wav
43
46
  - test/sirens/test_helper.rb
@@ -66,7 +69,7 @@ rubyforge_project:
66
69
  rubygems_version: 1.2.0
67
70
  signing_key:
68
71
  specification_version: 3
69
- summary: Ruby gem that implements Sirens, a library for segmentation, indexing, and retrieval of environmental and natural sounds.
72
+ summary: Ruby gem that for the Sirens library.
70
73
  test_files:
71
74
  - test/sirens/sirens_test.rb
72
75
  - test/sirens/test_helper.rb