Module: Echonest::TraditionalApiMethods
- Included in:
- Api
- Defined in:
- lib/echonest/traditional_api_methods.rb
Class Method Summary collapse
Class Method Details
.included(c) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/echonest/traditional_api_methods.rb', line 3 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 |