Mercurial > hg > camir-aes2014
annotate core/magnatagatune/fm_retrieve_album.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 function [album, mbids] = fm_retrieve_album(album_name) |
wolffd@0 | 2 %[album, mbids] = fm_retrieve_album(album_name) |
wolffd@0 | 3 % |
wolffd@0 | 4 % returns last.fm artist tags and tag weights for given artist |
wolffd@0 | 5 % this uses a lastpy python script to handle the REST data exchange |
wolffd@0 | 6 |
wolffd@0 | 7 % call python function |
wolffd@0 | 8 str = python('fm_retrieve_album.py',album_name); |
wolffd@0 | 9 |
wolffd@0 | 10 % parse text function output |
wolffd@0 | 11 album = textscan(str,'%s %s','Delimiter',','); |
wolffd@0 | 12 mbids = album{2}; |
wolffd@0 | 13 album = album{1}; |