Quantcast
Channel: The Echo Nest Developer Forum
Viewing all articles
Browse latest Browse all 1582

Multiple songs' audio_profile in a single call?

$
0
0

Thanks for the reply.

This is definitely not for uploading audio files, just the songs/artists identification. Assuming I had an array of song IDs from a user, the following is the only way I know how to get the loudness of each song.

def songloudness
  @audiosummaries = []
  @idarray.each do |songid|
    @audiosummaries << Echowrap.songprofile(:id => songid, :bucket => 'audio_summary').audiosummary.loudness
  end
end

This looks like one call for each song and would likely break my rate limit. To confirm, you are saying there is no other way to get multiple loudnesses (for example) in a single response?


Viewing all articles
Browse latest Browse all 1582

Trending Articles