plant-sirens 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +4 -6
- data/VERSION +1 -1
- data/examples/three_features.rb +2 -0
- data/ext/sirens/sirens.cpp +1 -0
- data/sirens.gemspec +2 -2
- metadata +2 -2
data/README.markdown
CHANGED
@@ -13,15 +13,13 @@ Additionally, sirens-ruby has the following gem dependencies, which RubyGems sho
|
|
13
13
|
2. [jeweler](http://github.com/technicalpickles/jeweler/)
|
14
14
|
2. [rice](http://github.com/cout/rice/)
|
15
15
|
|
16
|
-
*Rice Note:* I've had some problems with installing the Rice 1.1.0 gem. Try 1.0.2 if it doesn't work. On OSX, neither seems to work
|
16
|
+
*Rice Note:* I've had some problems with installing the Rice 1.1.0 gem. Try 1.0.2 if it doesn't work. On OSX, [neither seems to work](http://rubyforge.org/tracker/index.php?func=detail&aid=19828&group_id=4163&atid=16066), so try the [workaround on the Wiki](http://wiki.github.com/plant/sirens-ruby/installing-rice-on-osx).
|
17
17
|
|
18
18
|
## Installation
|
19
|
-
To install
|
19
|
+
To install sirens-ruby, type:
|
20
20
|
|
21
21
|
gem sources -a http://gems.github.com
|
22
|
-
sudo gem install plant-sirens
|
23
|
-
|
24
|
-
*OSX Note:* Under OSX, you might get a warning about an unsupported architecture when compiling sirens-ruby, since Ruby will try to create a universal binary for the bundle, and FFTW and Sirens don't build universal binaries by default. You can ignore this warning, as it won't affect you unless you're trying to copy sirens.so directly between machines of different architectures.
|
22
|
+
sudo gem install plant-sirens
|
25
23
|
|
26
24
|
## Usage
|
27
25
|
Sirens is pretty minimal at the moment and only supports the extraction of six basic features. In the future, Sirens will include feature-based segmentation and comparison.
|
@@ -45,7 +43,7 @@ Here is a basic example to extract loudness (dB) from a sound file:
|
|
45
43
|
|
46
44
|
puts loudness.history
|
47
45
|
|
48
|
-
More examples can be found in the /examples folder. Detailed documentation is on the [Wiki](http://wiki.github.com/plant/sirens-ruby).
|
46
|
+
More examples can be found in the /examples folder. Detailed documentation is on the [Wiki](http://wiki.github.com/plant/sirens-ruby). Expect RDoc documentation soon.
|
49
47
|
|
50
48
|
# Copyright
|
51
49
|
Copyright (c) 2009 Brandon Mechtley. See LICENSE for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/examples/three_features.rb
CHANGED
data/ext/sirens/sirens.cpp
CHANGED
@@ -69,6 +69,7 @@ extern "C" void Init_sirens() {
|
|
69
69
|
define_class_under<Sound>(rb_mSirens, "Sound")
|
70
70
|
.define_constructor(Constructor<Sound>())
|
71
71
|
.define_method("open", &Sound::open)
|
72
|
+
.define_method("close", &Sound::close)
|
72
73
|
.define_method("samples", &Sound::getSampleCount)
|
73
74
|
.define_method("frames", &Sound::getFrameCount)
|
74
75
|
.define_method("frameLength", &Sound::getFrameLength)
|
data/sirens.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{sirens}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Brandon Mechtley"]
|
9
|
-
s.date = %q{2009-07-
|
9
|
+
s.date = %q{2009-07-13}
|
10
10
|
s.description = %q{Ruby gem that implements Sirens, a library for segmentation, indexing, and retrieval of environmental and natural sounds.}
|
11
11
|
s.email = %q{bmechtley+github@gmail.com}
|
12
12
|
s.extensions = ["ext/sirens/extconf.rb"]
|
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.1.
|
4
|
+
version: 0.1.1
|
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-
|
12
|
+
date: 2009-07-13 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|