christoph-buente-ruby-xtract 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.
data/README ADDED
@@ -0,0 +1,19 @@
1
+ ruby-xtract by Christoph Bünte http://www.christophbuente.de
2
+ =================================================================
3
+
4
+ Libxtract (http://libxtract.sourceforge.net/) is a simple, portable, lightweight library of audio feature extraction functions. Now this functionality is brought to ruby.
5
+
6
+ What is it?
7
+ ===========
8
+ ruby-xtract is a FFI wrapper for libxtract
9
+
10
+ What do I need?
11
+ ===============
12
+ You need ffi and libxtract.
13
+ % sudo gem install ffi
14
+
15
+ On a linux box install packages with your favourite package manager like yum or apt
16
+ % sudo apt-get install libxtract-dev
17
+
18
+ On a mac install packages via macports
19
+ % sudo port install libxtract (i just submitted it to macports so stay tuned)
data/lib/xtract.rb ADDED
@@ -0,0 +1,12 @@
1
+ require 'ffi'
2
+ module Xtract
3
+
4
+ require 'xtract/vector'
5
+ require 'xtract/scalar'
6
+
7
+ include Vector
8
+ include Scalar
9
+ end
10
+
11
+ # require 'rubygems'
12
+ # require 'xtract'
@@ -0,0 +1,8 @@
1
+ module Xtract
2
+ module Scalar
3
+ extend FFI::Library
4
+ ffi_lib 'libxtract'
5
+
6
+ attach_function 'xtract_mean',[:pointer, :int, :pointer, :float], :int
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Xtract
2
+ module Vector
3
+ extend FFI::Library
4
+ ffi_lib 'libxtract'
5
+
6
+ attach_function 'xtract_amdf',[:pointer, :int, :pointer, :float], :int
7
+ end
8
+ end
File without changes
File without changes
metadata ADDED
@@ -0,0 +1,59 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: christoph-buente-ruby-xtract
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - "Christoph B\xC3\xBCnte"
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-07-18 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: FFI wrapper for libxtract which is a simple, portable, lightweight library of audio feature extraction functions.
17
+ email: info@christophbuente.de
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README
24
+ files:
25
+ - lib/xtract.rb
26
+ - lib/xtract/vector.rb
27
+ - lib/xtract/scalar.rb
28
+ - spec/ruby-xtract_spec.rb
29
+ - spec/spec_helper.rb
30
+ - README
31
+ has_rdoc: true
32
+ homepage: http://ruby-xtract.rubyforge.net/
33
+ post_install_message:
34
+ rdoc_options:
35
+ - --inline-source
36
+ - --charset=UTF-8
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: "0"
50
+ version:
51
+ requirements: []
52
+
53
+ rubyforge_project:
54
+ rubygems_version: 1.2.0
55
+ signing_key:
56
+ specification_version: 2
57
+ summary: FFI wrapper for libxtract which is a simple, portable, lightweight library of audio feature extraction functions.
58
+ test_files: []
59
+