Code Search for Developers
 
 
  

marsyas.rb from marsyas at Krugle


Show marsyas.rb syntax highlighted

# Load the shared object file (Will this work in Windows/OS X?)
require "marsyas_ruby"

# Creates the Marsyas Namespace
module Marsyas
	module Base
		include Marsyas_ruby # Use the shared objects code
	end
	
	# Create a class definition in this module
	def Marsyas.create_class name
		cls = Class.new Base::MarSystem
		cls.send :class_variable_set,:@@name,name
		def cls.new name
			cname = class_variable_get :@@name
			o = @@msm.create(cname,name)
			return o
		end
		return cls
	end

	# Create a global MarSystemManager
	@@msm = Base::MarSystemManager.new
	# And use it to generate the "automagic" classes
	@@msm.registeredPrototypes.each { |x| const_set x,(create_class x) }
end
 




See more files for this project here

marsyas

Marsyas (Music Analysis, Retrieval and Synthesis for Audio Signals) is a framework for developing systems for audio processing. It provides an general architecture for connecting audio, soundfiles, signal processing blocks and machine learning.

Project homepage: http://sourceforge.net/projects/marsyas
Programming language(s): C++
License: other

  Makefile.am
  Makefile.in
  marsyas.i
  marsyas.rb
  marsyas_python.cxx
  marsyas_python.py
  marsyas_ruby.cxx
  python.i
  ruby.i
  test.python
  test.rb