Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d8b1c40363
Fetching contributors…

Cannot retrieve contributors at this time

file 31 lines (21 sloc) 0.423 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
__author__ = 'grav'

"""
basis functions described here
http://developer.echonest.com/docs/v4/_static/AnalyzeDocumentation_2.2.pdf
"""


BRIGHTNESS = 1
ATTACK = 3

def hf(x):
    return x.hf

def lf(x):
    return x.lf

def peak(x):
    return x.peak

def energy(x):
    return x.energy

def kurtosis(x):
    return x.kurtosis

def brightness(x):
    return x.timbre[BRIGHTNESS]

def attack(x):
    return x.timbre[ATTACK]
Something went wrong with that request. Please try again.