I hadnt heard of the camelot song feature before. Seems its a code to indicate the compatible key: https://www.quora.com/What-does-Camelot-mean-in-musical-term...
Songdata
21–30 of 39 posts
Re: Songdata
#22Re: Songdata
#23Earlier quoted context omitted.
You can find the Spotify Developer Terms here: https://developer.spotify.com/terms Basically, you're not allowed to sell the Spotify in any way.
In those terms, it says "you may not store, aggregate or create compilations or databases of Spotify Content". So for this site to be compliant, they should be serving up the data directly from the Spotify API, which ought to get rate limited pretty quickly (when on the HN frontpage and all), unless they somehow got a very large quota.
When a request fails because of a rate limit, Spotify responds with 429 and a Retry-After header so you know when to schedule the next request.
In my tests, that header never had a value greater than 10 seconds, and 429 responses were very rare.
Re: Songdata
#24Some time ago I wanted to see how many songs have bass notes that go bellow 50Hz and I quickly realised that it way over my expertise to do that, but I'm still curios: would it be possible to display the frequencies for a particular track?
You should be able to get that from the Spotify API endpoint that returns a track's audio analysis.
There’s pitch but that only cares about in which key the frequencies are concentrated (e.g. it tells you that this part of the song has mostly C pitches but not if it’s C2 or C4)
Re: Songdata
#25How well does this manage songs with key changes?
But in my tests, the pitches seem to be averaged so only the dominant key is reported.
Re: Songdata
#26The moment I saw on the front page that Adele's "Easy On Me" was listed at 142 BPM, I was flabbergasted. You only have to play the song while looking at a timer for about 15 seconds to see the BPM is far less than half that number.
{
"meta": {
"analyzer_version": "4.0.0",
"platform": "Linux",
"detailed_status": "OK",
"status_code": 0,
"timestamp": 1633650625,
"analysis_time": 7.80526,
"input_process": "libvorbisfile L+R 44100->22050"
},
"track": {
"num_samples": 4954520,
"duration": 224.69478,
"sample_md5": "",
"offset_seconds": 0,
"window_seconds": 0,
"analysis_sample_rate": 22050,
"analysis_channels": 1,
"end_of_fade_in": 0.26807,
"start_of_fade_out": 209.58913,
"loudness": -7.519,
"tempo": 141.981,
"tempo_confidence": 0.432,
"time_signature": 4,
"time_signature_confidence": 1,
"key": 5,
"key_confidence": 0.545,
"mode": 1,
"mode_confidence": 0.58,
...
}
[1] https://developer.spotify.com/console/get-audio-analysis-tra...Re: Songdata
#27Re: Songdata
#28Earlier quoted context omitted.
In those terms, it says "you may not store, aggregate or create compilations or databases of Spotify Content". So for this site to be compliant, they should be serving up the data directly from the Spotify API, which ought to get rate limited pretty quickly (when on the HN frontpage and all), unless they somehow got a very large quota.
I’m serving everything from the Spotify API directly on Noiseblend ( https://noiseblend.com ) and rate limit has never been a problem. When a request fails because of a rate limit, Spotify responds with 429 and a Retry-After header so you know when to schedule the next request. In my tests, that header never had a value greater than 10 seconds, and 429 responses were very rare.
Re: Songdata
#29Earlier quoted context omitted.
I’m serving everything from the Spotify API directly on Noiseblend ( https://noiseblend.com ) and rate limit has never been a problem. When a request fails because of a rate limit, Spotify responds with 429 and a Retry-After header so you know when to schedule the next request. In my tests, that header never had a value greater than 10 seconds, and 429 responses were very rare.
Right, but you are using user login, and I think that gives you a lot more rate than a single account doing all the requests, which is what you need to get the no-sign-in experience on songdata.io - right?
I think all of my requests to Spotify have been done on behalf of authenticated users. But I guess you could authenticate with your own user to lift up the limits.
Re: Songdata
#30Some time ago I wanted to see how many songs have bass notes that go bellow 50Hz and I quickly realised that it way over my expertise to do that, but I'm still curios: would it be possible to display the frequencies for a particular track?