Sha256: b17eea3c1ba662c9f488c842a0eb538a2735c193e49c8778614ef43015ffc271

Contents?: true

Size: 393 Bytes

Versions: 8

Compression:

Stored size: 393 Bytes

Contents

module Echonest
  module TraditionalApiMethods
    def self.included(c)
      %w/tempo duration end_of_fade_in key loudness mode start_of_fade_out time_signature bars beats sections tatums segments/.
        each do |method|
        c.module_eval %Q{
          def get_%s(filename)
            track.analysis(filename).%s
          end
        } % [method, method]
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ruby-echonest-0.5.0 lib/echonest/traditional_api_methods.rb
ruby-echonest-0.4.0 lib/echonest/traditional_api_methods.rb
bassnode-ruby-echonest-0.1.3 lib/echonest/traditional_api_methods.rb
ruby-echonest-0.3.0 lib/echonest/traditional_api_methods.rb
ruby-echonest-0.2.0 lib/echonest/traditional_api_methods.rb
ruby-echonest-0.1.2 lib/echonest/traditional_api_methods.rb
bassnode-ruby-echonest-0.1.2 lib/echonest/traditional_api_methods.rb
ruby-echonest-0.1.1 lib/echonest/traditional_api_methods.rb