Module: MrEko::Presets

Included in:
Playlist
Defined in:
lib/mr_eko/presets.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

FACTORY =
{
  :gym => [
    :tempo    => 125..300, # sweat, sweat, sweat!
    :mode     => 'major',  # bring the HappyHappy
    :duration => 180..300,  # shorter, poppier tunes
    :energy   => 0.5..1.0,
    :danceability => 0.4..1.0
],
  :chill => [
    :tempo    => 60..120,  # mellow
    :duration => 180..600, # bring the epic, long-players
    :energy   => 0.2..0.5,
    :danceability => 0.1..0.5
]
}

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



26
27
28
# File 'lib/mr_eko/presets.rb', line 26

def self.included(base)
  base.extend(ClassMethods)
end