Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
gets the tempo for a song

        def get_tempo(artist, title):
    "gets the tempo for a song"
    results = song.search(artist=artist, title=title, results=1, buckets=['audio_summary'])
    if len(results) > 0:
        return results[0].audio_summary['tempo']
    else:
        return None
        


src/p/y/pyechonest-HEAD/examples/show_tempos.py   pyechonest(Download)
def show_tempo(mp3):
    "given an mp3, print out the artist, title and tempo of the song"
    tag = eyeD3.Tag()
    tag.link(mp3)
    my_tempo = tempo.get_tempo(tag.getArtist(), tag.getTitle())