Skip to content

Instantly share code, notes, and snippets.

@kylemcdonald
Last active February 13, 2021 08:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylemcdonald/6346acfbf9dfe7c4fc6ae47b98af7244 to your computer and use it in GitHub Desktop.
Save kylemcdonald/6346acfbf9dfe7c4fc6ae47b98af7244 to your computer and use it in GitHub Desktop.
Example analysis.
{
"id": "DyDfgMOUjCI", // youtube ID of song
"meta": {
"width": 640, // width of video
"height": 360, // height of video
"duration": "205.99", // duration of video in seconds
"alignment": {
"confidence": 0.993, // confidence of audio alignment output
"tempo": 135, // average tempo estimate
"method": "offset" // algorithm used for alignment
}
},
"timing": [
// tuple describing for each beat in the cover:
// 1. the start time in seconds
// 2. the end time in seconds
// 3. the corresponding beat in the original track
// 4. the confidence of this match
[14.111, 14.556, 0, 0.993],
[14.556, 15.0, 1, 0.993],
[15.0, 15.444, 2, 0.993],
// ...
[203.722, 204.222, 417, 0.993],
[204.222, 204.722, 418, 0.993],
[204.722, 205.222, 419, 0.993]
],
"classification": {
// visual classification across different categories
"copy": 0.975,
"location/interior/mean": 0.969,
"location/interior/std": 0.128,
"angle/eyelevel/mean": 0.217,
"angle/eyelevel/std": 0.36,
// ...
"framing/mediumcloseup/mean": 0.377,
"framing/mediumcloseup/std": 0.439,
"lighting/silhouette/mean": 0.16,
"lighting/silhouette/std": 0.295
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment