Giter VIP home page Giter VIP logo

mm-songs-db-tools's Introduction

mm-songs-db-tools

Million Songs DB Tools

Tools based on the Million Songs DB: http://labrosa.ee.columbia.edu/millionsong/

Usage:

MMSongsDbToCsvConverter

Helper object for reading hdf5 files and writing the results to a csv

Sample usage:

from mmsongsdbtools.mmsongsdbtocsvconverter import MMSongsDbToCsvConverter
converter = MMSongsDbToCsvConverter('mmsongsdb.csv', ['artist_name', 'tempo'])
converter.convert_directory('.')

The second parameter for the constructor of MMSongsDbToCsvConverter is an optional list of attributes to fetch for your csv. Available options are listed here:

http://labrosa.ee.columbia.edu/millionsong/pages/example-track-description

Helper command line script: mmsongsdb_to_csv.py.

Sample usage:

$ ./mmsongsdb_to_csv.py <csv_filename> <directory> [<attr_to_save> <attr_to_save> ...]

Parameters:

  • <csv_filename> the filename of the output csv file
  • <directory> the name of the directory that has the .h5 files in it
  • <attr_to_save> optional attributes to save in the csv file (if not specified, all attributes will be used)

Example:

$ ./mmsongsdb_to_csv.py /path/to/file.csv /path/to/input/directory artist_name title tempo

Will create the file /path/to/file.csv that has data like this:

artist_name,title,tempo
Sticky Fingaz,Oh My God,80.149000000000001
Dame Joan Sutherland / New Philharmonia Orchestra / Richard Bonynge,Joy To The World,82.421999999999997
The Jeff Healey Band,Hoochie Coochie Man,107.197
Angela Dimitriou,Ftei O Erotas,124.17700000000001
Danny Wilson,The Second Summer Of Love,196.03399999999999
Lionel Rogg,Prelude And Fugue In C Major BWV 531 : Fugue,64.400999999999996
Java,Don't Phunk With My Heart,130.86099999999999
SWAMI featuring Asuivre,Give It What U Got,90.007999999999996
The Black Velvet Band,Dancing To A Standstill,122.17400000000001
Lisa Lynne,Isla del Luna,95.980999999999995
Pe'z,Spirit,75.954999999999998
Shawn Colvin,Another Long One,210.87100000000001
Stephy Tang,Leng Jing,105.196

Requirements:

Resources:

mm-songs-db-tools's People

Contributors

loisaidasam avatar

Watchers

James Cloos avatar Piyush avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.